[Icecast] Listen Links

Jeroen van Oosten jvoosten at bankai.nl
Wed Jan 6 19:29:18 UTC 2016


On 04-01-16 17:23, Hannah Carroll wrote:
> Hello,
> I would like to add different listening options to my website but I
> having a bit of difficulty doing this.
> I would like the options of iTunes, windows media player and winamp etc. 
> If you would like to see an example of what I mean just click either
> of these links, http://www.sub.fm/listen/ or http://www.rood.fm.
> My website is subtle.fm.

Well, the way we implemented it on our site (www.radiogfm.nl, under
'External player') is by some PHP code that manipulates the
'Content-type' that is sent to the browser and generates a specific
playlist for each player.

The key element here is the content type; for example, WinAmp registers
itself to the 'audio/x-scpls' content, so if the user click on a link
with that content-type, WinAmp will get started; same for
'video/x-ms-asf' for Media Player.

I will send you the script, however it's been years since I tested it
(I'm using the embedded player mostly); and I'm not sure we can do
something similar for iTunes. Of course, as others pointed out on the
list it's probably best to let the user decide which player to use but I
suppose there are cases where choosing the player is preferable.


Jeroen van Oosten

Bankai Software
Jeroen van Oosten
Telefoon: 010-4134567
E-mail: jvoosten at bankai.nl
KvK inschrijving: 24455492

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20160106/4d789632/attachment.htm>

More information about the Icecast mailing list