jPlayer icon indicating copy to clipboard operation
jPlayer copied to clipboard

Browser hangs

Open osCMattiFinn opened this issue 10 years ago • 3 comments

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.

osCMattiFinn avatar Dec 14 '15 16:12 osCMattiFinn

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

Firefox I presume?

thepag avatar Dec 14 '15 23:12 thepag

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.

osCMattiFinn avatar Dec 15 '15 00:12 osCMattiFinn

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

bbrendon avatar Jan 12 '16 22:01 bbrendon