Start a video from a certain time.
I do not know how to do. I need to initiate the video player from a certain time and not from the beginning of video file. To what variables in the script I have to enter the start time.
I do not know how to do. I need to initiate the video player from a certain time and not from the beginning of video file. To what variables in the script I have to enter the start time.
We do not have built-in functionality to do this, but you have a few different ways to do this with our Javascript API. My suggestion would be to call jwplayer().seek(desired_time_in_seconds) inside of the on(‘firstFrame’) event. The code would look something like this to seek to 30 seconds as soon as the video starts:
jwplayer().on('firstFrame',function(){
jwplayer().seek(30);
});
Please note that if our player is in Flash mode, we cannot seek to unbuffered portions of the video. This is a Flash limitation, not ours, so we do not have a way to work around this behavior.