JW Player 7 : Pause on beforeComplete

I have a question. I’ve recently switch to JWPlayer (from VideoJS) and holy crap is it a bandwidth hog; my total bandwidth has spikes close to 50%. I’m not sure what the techs were thinking, but the player requires reload of entire (progressive) videos if you are to seek out of bounds or come to the end of the clip. When you choose to play the clip again, JWPlayer 7 requires that the entire video be downloaded all over again instead of seeking back to the beginning of the clip already downloaded.

To solve this, I need to prevent the stop() event at the end of the video. I’ve tried adding a pause event within the on.beforeComplete function. While the console log shows it is firing, the player stops before it allows the pause.

What gives? Anybody have any ideas on how to pause the player right before the end of the clip?

playerInstance.on('beforeComplete', function(e){
    playerInstance.pause(true);
    console.log("tried to stop!");
});

Cheers!
Ryan

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.