JW Player 6 and Shoutcast v2

1.8k Views Asked by At

I'm using JW Player (v6) to broadcast an AAC+ webradio. I can use it with IceCast 2 servers (in my case using the KH branch). Now I'm setting up a new webradio but using a ShoutCast v2 server. I cannot find a way to get it work.

I've tried Muses player. It works but is a bit unstable and have no metatag support for v2, that I need.

Here is a working example of JW Player using IceCast 2:

jwplayer("myElement").setup({
  autostart: true,
  height: 30,
  width: 400,
  primary: 'flash',
  playlist: [{
    title: 'Live Mix - www.livemix.com.br',
    sources: [{
      file: "http://aac.livemix.com.br:80/livemix?type=.flv",
      type: "flv",
    }]
  }]
});

My new webradio in ShoutCast v2 is:

http://radio.centraldj.com.br:8000/centraldj

Any help is appreciated.

2

There are 2 best solutions below

2
On

SHOUTcast (v2 included) is slightly incompatible with HTTP. You won't be able to get this to work on all platforms.

Also, there aren't any browsers that can handle HE-AAC in the ADTS wrapper, which is why Icecast has the option to send the data as FLV instead. SHOUTcast doesn't have this functionality. You could get MP3 streams from SHOUTcast to work on browsers that support it, but not all browsers can play MP3. In addition, not all browsers will deal with the broken HTTP implementation.

4
On

ShoutCast/IceCast support in Flash/HTML5 is pretty shaky. The JW Player works with some streams, but not others. For this reason, we don't officially support it under our supported formats - http://support.jwplayer.com/customer/portal/articles/1403635-media-format-support

However, you might be able to get it working by using this:

jwplayer("myElement").setup({
  autostart: true,
  height: 30,
  width: 400,
  primary: 'flash',
  file: "http://radio.centraldj.com.br:8000/centraldj",
  type: "mp3"
});