Note that there are some explanatory texts on larger screens.

plurals
  1. POGrooveshark Public Streaming API with jPlayer
    primarykey
    data
    text
    <p>I am able to stream songs from Grooveshark using there public streaming API. I am using this with jPlayer(jplayer.org) and it's streaming the songs correctly.</p> <p>But the problem is that <strong>in Firefox</strong> (checked on latest version) the <strong>full duration of the song</strong> keeps on increasing from 00:00 to the full song length. Basically the full song duration <strong>is the amount of the song buffered</strong>.</p> <p>For e.g. <strong>a song of length 04:00</strong> minutes starts buffering. Now when <strong>it buffers a quarter</strong> of the song (i.e. 01:00 minutes), <strong>jPlayer shows the song duration as 01:00</strong> minutes whereas it should be 04:00 minutes.</p> <p><strong>Screenshot:</strong> (The song playing has total length 05:06 minutes)</p> <p><a href="http://i.stack.imgur.com/wzxPx.png" rel="nofollow">http://i.stack.imgur.com/wzxPx.png</a></p> <p><strong>In Google Chrome</strong> (checked on latest version) the <strong>full duration of the song is shown</strong> and jplayer shows that the whole song is buffered even from the start of the song.</p> <p><strong>Screenshot:</strong> (Chrome shows that the full song is buffered but it is still buffering)</p> <p><a href="http://i.stack.imgur.com/PSkct.png" rel="nofollow">http://i.stack.imgur.com/PSkct.png</a></p> <p>jPlayer uses HTML5 first and falls back to flash if HTML5 not supported. Google Chrome supports playing mp3 using HTML5 (Grooveshark stream is an mp3). But Firefox does not supports mp3 in HTML5.</p> <p>So it is clear that <strong>Firefox is using flash and Chrome is using HTML5</strong>.</p> <p>Now the problems I want to solve are :-</p> <ul> <li><strong>Getting full duration of song in Firefox and keep everything else like it is.</strong></li> <li><strong>Keeping the full duration of song in Chrome and to show the correct amount of song buffered.</strong></li> </ul> <p>All of this should be possible as grooveshark website itself also uses the same stream.php file.</p> <p>Grooveshark is also providing it's own flash player but it does not has enough features and specially it's not HTML5.</p> <p>And if it's not possible with jPlayer then please suggest me a better alternative that supports HTML5 and is good for streaming.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload