[Icecast-dev] icecast with bootstrap

"Thomas B. Rücker" thomas at ruecker.fi
Tue Dec 16 12:44:34 PST 2014


On 12/16/2014 08:32 PM, bazza wrote:
> El 16/12/14 a las 10:08, "Thomas B. Rücker" escibió:
>> Hi,
>>
>> On 12/16/2014 12:55 PM, Micheil Smith wrote:
>>> I guess it’d be possible to compile the templates in something other than xsl, 
>>> the question would be what, and is it worth it?
>> Something that people tend to overlook is, that the Icecast web
>> interface is not meant to be a primary page for radio listeners or let
>> alone a station's homepage.
>> Obviously people want to put data about their streams on e.g. a homepage
>> or somewhere else though.
>> Icecast addresses this by
>> a) traditionally by utilizing XSLT to transform data into machine
>> readable, tailored output
>>   cf. e.g. http://ruecker.fi/foss/icecast/xslt/
>> b) recently we added a new, cool, hip JSON API (/status-json.xsl)
>>   I'd recommend running 2.4.1 as there you have basic control over
>> CORS-ACAO headers and there is an important fix in the JSON API.
>>
>>> I was bored early this morning so hacked on the xslt files for the NTS Radio 
>>> icecast — listen.ntslive.co.uk
> Thanks this examples are what I was searching for. I think that it would
> be usefull that you have more information about your xsl.

XSLT is just XSLT, regardless of if it is Icecast or something else.
The recommended workflow is:
- download /admin/stats from your icecast instance to have a reference
- write some cool XSLT
- use "xsltproc your-cool.xslt stats.xml" to verify output
- repeat previous two steps until you like the result
- drop XSLT file into webroot.

There are plenty of resources to learn about XSLT, e.g.
http://www.w3schools.com/xsl/

If you need examples, I've pointed out my old (crappy) XSLT files.

If you hate XSLT, use the JSON API.


>> A bit minimalistic, but yeah, everyone can tailor it the way they want.
>> Especially if it will get a lot of internal use.
> The home page of Icecat would be an excellent html5 player.

If you look at Icecast 2.4.x  - you will notice that we do indeed have
in the Icecast web interface <audio> html5 elements for streams that are
using supported formats like Opus or Ogg/Vorbis.

Cheers

Thomas




More information about the Icecast-dev mailing list