Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JWPlayer shows the beginning frame of the video on seek


Hi,

I've the following code that execute a small replay of the last 5 seconds of my video

jwvideo.onReady(function() {
replay_done = false;
this.setMute(true);
tag = document.querySelector('video');
tag.defaultPlaybackRate = 1.0;
tag.playbackRate = 1.0;
});

jwvideo.onComplete(function() {
if (!replay_done) {
$("#replay").show();
var replay_time = 5;
this.seek(this.getPosition() - replay_time);
tag.playbackRate = 0.3;
replay_done = true;
}
else {
$("#replay").hide();
endVideoAndDisplayResults();
}
});

But when onComplete is fired for the first time, JWPlayer shows for a moment the first frame of my video, and then seeks. Apart from that, playbackRate is fine and replay is fine.
I'm using JWPlayer in HTML5 mode, on .mp4 videos, and this frame is showed on every browser (IE, FF, Chrome and Safari).

How can I solve this?

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Do you have a test page that shows the issues you’re describing?

wiregamingsrl

User  
0 rated :

Hi Andrew. Is there a way to PM you?

Andrew

JW Player Support Agent  
0 rated :

You can send over a private support request from your account page if you’re a pro or higher user:

https://account.jwplayer.com/

This question has received the maximum number of answers.