Jurager
Jurager

Reputation: 45

jPlayer on loadcomplete event

I have custom preloader with css3 animation in my application, but when sound complete loading preloader still moves. I searched in documentation on jplayer.org but it seems it was nothing like this, to hide this preloader when data was loaded.

Upvotes: 1

Views: 1729

Answers (1)

Jurager
Jurager

Reputation: 45

I have found answer for this question:

$("#jquery_jplayer_1").bind($.jPlayer.event.progress, function (event) {
   if (event.jPlayer.status.seekPercent === 100) {
     // loading complete
    } else {
     // Still loading
    }
});

Upvotes: 1

Related Questions