jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

Browser hangs #339

Open osCMattiFinn opened 8 years ago

osCMattiFinn commented 8 years ago

Put 20 click values in a list.

initiate jPlayer

create a click function to load the player on click, eg.

function loadPlayer(er) {

     var releaseTitle = $(er).attr("data-title"); 
     var filename = $(er).attr("data-file");      

     $("#jquery_jplayer").jPlayer("setMedia", {
            title: releaseTitle,
            mp3: fileName,
        }).jPlayer("play");

    }

Click through your list of click values.

The browser will hang after ten to fifteen clicks and will give a script hang alert.

The problem also happens when using the jPlayer Playlist extension.

thepag commented 8 years ago

So you spam changing the media SRC and the browser eventually complains that the scripts is taking too long?

Firefox I presume?

osCMattiFinn commented 8 years ago

Yes, that's what happens Mark.

It happens in both Firefox and Chrome (have only tested in these two).

It's for a DJ download website, so they skip through mixes quite furiously.

bbrendon commented 8 years ago

I'm not sure if this is exactly the same issue, but my browser is hanging when listening to phone recordings in FreePBX.