Shoutcast streaming problem with FF and IE

579 views
Skip to first unread message

Federico

unread,
Mar 18, 2011, 9:53:09 AM3/18/11
to jPlayer: HTML5 Audio & Video for jQuery
Hi,

I'm having problems to reproduce a ShoutCast radio stream on Firefox
3.6.x and IE8. In these two browsers jPlayer is using the FLASH
solution to reproduce the url. The streaming is in AAC format. This is
the code (the url is just an example):

$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://www.shoutcast-server.com:60030/",
}).jPlayer("play");
},
ended: function (event) {
$(this).jPlayer("play", 20);
},
swfPath: "js",
solution: "html, flash",
supplied: "m4a"
});

This is working ok when I used a simple file name that ends with the
".m4a" extension (e.g. http://www.jplayer.org/audio/m4a/Miaow-08-Stirring-of-a-fool.m4a).
However, I have tried with more than 5 Shoutcast radio streams that
have the URL like this one: http://www.grupolorini.com:60010/
With the Shoutcast URLs, I checked with Firebug the responses and I'm
receiving the HTML index page's code (something like this page:
http://82.165.130.87:8510/) instead the audio streaming.

Any ideas to fix this problem.

PD: the shoutcast URLs are working ok on Safari, because this is using
the HTML5 instead the FLASH version.

Thanks in advance.
http://www.jplayer.org/audio/m4a/Miaow-08-Stirring-of-a-fool.m4a

Onyx

unread,
Mar 18, 2011, 1:35:22 PM3/18/11
to jpl...@googlegroups.com
Hi Federico,

In my experience, jPlayer does not gracefully fall back to an alternate solution when dealing with streams.  I would recommend detecting the user-agent (e.g., Firefox & IE) with some logic _before_ the jPlayer object is constructed, and setting the solution string ("html, flash" vs. "flash, html") depending on which user-agent you detected.

I hope this helps.

Onyx


--
You received this message because you are subscribed to the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To post to this group, send email to jpl...@googlegroups.com.
To unsubscribe from this group, send email to jplayer+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jplayer?hl=en.


Federico

unread,
Mar 18, 2011, 3:59:59 PM3/18/11
to jPlayer: HTML5 Audio & Video for jQuery
Hi Onyx,

Thanks for your response.

I have already tried to set the solutions in different order, but I
still have the same problem. It seems that the problem is with my URL
when jPlayer has decided to use the FLASH solution, and for FF and IE8
jPlayer needs to use the FLASH solution.

Fede.


On Mar 18, 2:35 pm, Onyx <o...@onyxmueller.net> wrote:
> Hi Federico,
>
> In my experience, jPlayer does not gracefully fall back to an alternate
> solution when dealing with streams.  I would recommend detecting the
> user-agent (e.g., Firefox & IE) with some logic _before_ the jPlayer object
> is constructed, and setting the solution string ("html, flash" vs. "flash,
> html") depending on which user-agent you detected.
>
> I hope this helps.
>
> Onyx
>

Onyx

unread,
Mar 18, 2011, 5:48:24 PM3/18/11
to jpl...@googlegroups.com
Fede,

Try placing "/;stream/1" at the end of the streams you are having problems with.  This is something that one of the Mark's (jPlayer's founders) discovered was needed when dealing with certain streams.  Adding that suffix seems to tell the browser to provide the stream data and not the status page.

I hope that helps.

Onyx

Federico

unread,
Mar 18, 2011, 7:06:41 PM3/18/11
to jPlayer: HTML5 Audio & Video for jQuery
Onix,

I had found that possible solution in the forum and I tried it, but it
didn't work for me. Who said that solution was working with a MP3
streaming, I have an AAC (m4a) streaming may be that's why didn't work
in my case.

I will keep searching a solution for this issue.

Thanks again for your time and help.

Fede.


On Mar 18, 6:48 pm, Onyx <o...@onyxmueller.net> wrote:
> Fede,
>
> Try placing "/;stream/1" at the end of the streams you are having problems
> with.  This is something that one of the Mark's (jPlayer's founders)
> discovered was needed when dealing with certain streams.  Adding that suffix
> seems to tell the browser to provide the stream data and not the status
> page.
>
> I hope that helps.
>
> Onyx
>

Federico

unread,
Mar 21, 2011, 9:00:33 AM3/21/11
to jPlayer: HTML5 Audio & Video for jQuery
I could not fix this yet. Any ideas of what can be happening?

Fede.

Darto KLoning

unread,
Aug 1, 2013, 8:51:41 PM8/1/13
to jpl...@googlegroups.com
@Federico,

I have same problem, i can not play jPlayer on IE n FF but it's working on Chrome n Safari. I think the problem is the browser technology.

Mark Panaghiston

unread,
Aug 5, 2013, 11:53:03 AM8/5/13
to jpl...@googlegroups.com
@Darto, this is an old post... But I suggest you check your MIME types as IE and FF are strict and refuce to play media that does not have the correct content-type. Oddly though, IE tends to play it if it has no MIME type at all.

http://www.jplayer.org/latest/developer-guide/#jPlayer-server-response
Reply all
Reply to author
Forward
0 new messages