Hello jPlayer group,
After receiving a few emails about audio streaming and seeing an
example of a project that successfully uses jPlayer with an MP3
stream, I have turned my eye to streaming for the moment.
Project in question:
http://radiosonar.co.uk/listen.php
Developer's blog post on Radio Sonar and jPlayer:
http://www.georgebuckingham.net/blog/2010/04/16/jplayer-the-best-jquery-plugin/
My first problem was to find an internet radio station that streamed
MP3 and OGG formats. After looking around a bit, I soon found:
http://www.absoluteradio.co.uk
http://www.absoluteradio.co.uk/listen/on_your_computer.html
I got the OGG stream to work straight away in Firefox... After
downloading the PLS file and reading the OGG stream URL and popping it
into the setFile OGG parameter.
The MP3 stream was a shoutCast stream... This took me a while to
figure out how to get hold of the actual MP3 audio stream. Using the
URL in the PLS file just gave an HTML page.
http://mp3-vr-128.as34763.net:80/
It then took a while to find out how to actually get hold of the MP3
stream from the URL. Just about when I was ready to give up... After
reading one of those forums about 1 mile long, I decided to take a
stab in the dark and try slapping a ";stream/1" at the end of the URL
given in the MP3 PLS file. I punched the air when it actually worked!
http://mp3-vr-128.as34763.net:80/;stream/1
So, I have now tried jPlayer to see how it works with audio streams.
The Flash seems to work fine with the MP3 stream in all browsers. I
did have to remove the Stop button and progress bars from my test
interface, since the progress bar did nothing and the stop button
actually screwed up the stream and stopped the player working until
you reloaded the page.
Testing with HTML5 support has been varied:
Firefox 3.6 worked with the OGG stream, but has a blip and pause at
the start. After about 10 seconds, play continues. Maybe the browser
is caching the audio? (Firefox only supports OGG format natively.)
Opera 10.5 worked with the OGG stream. After a while, the audio did
start blipping until I paused for a few moments. Maybe the instant
playing did not give enough for a buffer? (Opera only supports OGG
format natively.)
Safari 4 did NOT work with the MP3 stream. (Safari 4 only supports MP3
format natively.)
Chrome 4 did NOT work with the OGG stream at all. Nor did Chrome 4
work with the MP3 stream. (Chrome 4 supports both MP3 and OGG format
natively.)
So, as Radio Sonar found, if you want to use jPlayer with audio
streams, you must have an MP3 stream and force the Flash using
{nativeSupport:false}
Until browsers develop the HTML5 audio support to a higher level,
using the Flash fallback will be the only method that works.
I understand that to work with streams, without killing people's
computers, the stream needs to be reset every 100MB or so. I will be
looking into a change for the SWF file that takes this into account.
If anyone has anything to contribute on this topic, then please speak
up.
Best regards,
Mark P.
--
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.