![](https://secure.gravatar.com/avatar/9496dc04f0cdbf37887cbc52f8796eca?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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;
}
});