I am using jQuery Audio Player 'jPlayer', I have a loop that creates many japplers unique instances, For each installation, which assigns them, click on 'Japplayer Play' on the second part of the document. The problem is that the japlayer uses an internal
ready: function () {}
to specify and load the audio path. I want to end this function before continuing the loop. Must have to wait for. Pseudocode is something like this:
for making loop {making JAPlayer's devel; Assign the audio file to Immediate and Ready () to JPlayer; // To run the file, one has to wait before continuing on the click event; }
I'm sure it's about using queues, but I do not know how it will be implemented. Any help would be most appreciated!
You can try to do something like this:
In fact, we get rid of a clear loop and Instead, use the ready-to-use function to forward the creation frequency through the initplayer
function. Using an array, we can use pop
, which We will get that last element of the array, while it will also be removed from the array. We think the load percentage of every 500 ms player After donating 100 percent of the weight, we wait for the call to initPlayer
.
This is just a suggestion and a lot of work may be required ... Ive never used the japlayer and are blindfolded by the documents so it is not expected to work outside the box: -).
Comments
Post a Comment