
Starta video at 15th second with HLS
Hello,
I'm using JWP with HLS streaming.
I need to start a video from a certain point (i.e. 15th second) and not from the beginning.
How can I do it?
Thanks a lot
Hello,
I'm using JWP with HLS streaming.
I need to start a video from a certain point (i.e. 15th second) and not from the beginning.
How can I do it?
Thanks a lot
You can use our seek() API call to seek to a particular section of the video. The trigger for this could be onPlay(), though you’d need a way to have this fire only once. Maybe something like:
var played = false;
jwplayer().onPlay(function(event){
if (played===false){
jwplayer().seek(15);
played = true;
}
});