Stream Shoutcast & AAC

766 views
Skip to first unread message

Alex

unread,
Jun 9, 2011, 6:46:05 AM6/9/11
to jpl...@googlegroups.com
Hi all, I need your experience !
 
I'm testing jPlayer with shoutcast stream mp3 & aac+
The demo with mp3 stream works fine  =>  mp3: "http://mp3-vr-128.as34763.net/;stream/1" or others mp3 radios
 
But with a aac stream nothing run, jPlayer don't read the stream...I try with FF4, IE9, Safari 5
Does jPlayer read acc stream ? How to configure ?
Thanks
 
Here my code :
 
$(document).ready(function(){
 $("#jquery_jplayer_1").jPlayer({
  ready: function () {
   $(this).jPlayer("setMedia", {
    m4a: "http://www.myradio.net:8000/;stream/1"
   }).jPlayer("play");
  },
  ended: function (event) {
   $(this).jPlayer("play");
  },
  // oggSupport: false,
  swfPath: "js",
  // solution: "html, flash",
  supplied: "m4a"
 });
});

Mark Panaghiston

unread,
Jun 19, 2011, 3:15:53 PM6/19/11
to jpl...@googlegroups.com
It appears that native HTML5 audio does not like AAC streams based on a few other posts. I have not tried the AAC format in a stream myself.

From your list of browsers, some would be trying to use the HTML5 solution (Safari/Chrome/IE9/iOS) and others the Flash solution (Firefox/Opera).

Erm... your code there seems to have comment code for jPlayer 1.x and other code for jPlayer 2.x.
Are you using jPlayer 2 in your project?

jPlayer 1.x flash will not work with AAC at all. The HTML solution should work similar to that in jPlayer 2 though.

Eduard Vasilica

unread,
Feb 2, 2016, 4:41:32 AM2/2/16
to jPlayer: HTML5 Audio & Video for jQuery
This configuration works for jPlayer on Shoutcast v1 and AAC Plus :

jQuery(document).ready(function($) {
$("#jquery_jplayer_audio_1").jPlayer({
ready: function(event) {
$(this).jPlayer("setMedia", {m4a: "http://live.radiodeea.ro:8090/;listen.pls",
}).jPlayer("play");
},
swfPath: "js",
supplied: "m4a",
cssSelectorAncestor: "#jp_container_audio_1",
useStateClassSkin: true,
autoBlur: false,
smoothPlayBar: true,
remainingDuration: true,
keyEnabled: true,
keyBindings: {
// Disable some of the default key controls
loop: null,
muted: null,
volumeUp: null,
volumeDown: null
},
wmode: "window"
});
});



Reply all
Reply to author
Forward
0 new messages