jPlayer handle streaming kinda fine. There are some problems with
streaming plugged into the native HTML 5 element in browsers, but jPlayer
will help you handling those to a certain degree.
I've build a radio player which use jPlayer to deal with streaming cross
browser and the backend setup is kinda easy: There are Icecast servers
which stream both OGG and MP3. By streaming in both formats your able to
target all browsers and you have a MP3 stream you can provide to jPlayers
fallback flash. In the jPlayer end then it is basically so easy as you
describe it; just plugging the stream into jPlayer instead of the single
OGG / MP3 file.
Worth noting is that; Opera, FireFox and Chrome will play the OGG stream
with native HTML 5 support. Safari (and the iPad) will use the MP3 stream
with native HTML 5 support. IE will use the fallback flash in jPlayer with
the MP3 stream.
Opera will publish an article on this subject (where jPlayer are used to
build an radio player) very soon. I'll keep you posted when it is online.
You can see the radio player I've build here:
http://apps.trygve-lie.com/radio/widget/
If your curious about the code for the radio player; it can be found in
github:
http://github.com/trygve-lie/widget-radio-player
This is more or less the whole file you want to look at:
http://github.com/trygve-lie/widget-radio-player/blob/master/src/main/webapp/widget/script/player.js
Kind regards
Trygve Lie
@trygve_lie
> --
> You received this message because you are subscribed to the Google Groups
> "jPlayer: the CSS styleable jQuery audio player plugin" 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.
>
>
------------------------------------------------
Trygve Lie | http://www.trygve-lie.com
If you are refering to this list:
http://www.trygve-lie.com/blog/entry/html_5_audio_element_and
They have been tested on Win, Ubuntu and Mac browsers.
> I found that Chrome and Safari did not work with streaming, on Win XP
> or Vista. I just checked your player in chrome and safari on win XP
> and neither worked. [Safari 4.0.5] [Chrome 5.0.375.70]
That's correct. I see a typo in my last post when it comes to Chrome (all
OS'es) and Safari (MP3 works on Mac but not at all on PC). Sorry about
that :-|
> Chrome on the PC appears to get hung up on the accept-ranges part of
> the request... I found it funny that the Google Application Engine for
> Eclipse, does not serve files correctly on the Jetty server for Google
> Chrome on the PC. (I cannot test with a Mac at my location.)
Same experience which I have.
> Sound vise, Opera performed the best. Firefox 3.6 had a blip of sound
> then a long pause before the radio suddenly started playing.
Same experience which I have on this one also.
Trygve
Anyway: I've got some time to test audio streaming in IE9 (last preview)
against the HTML 5 audio tag and IE) seems to play Mp3 streams very well I
must say.
FireFox 4 beta 1 which arrived yesterday also plays streams better :-)
I've updated the table:
http://www.trygve-lie.com/blog/entry/html_5_audio_element_and
Cheers
Trygve
@trygve_lie