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

JWPlayer .seek() Not working with HLS Adaptive streaming


I can't seem to get the .seek() to work. I'm using HLS adaptive streaming.
It works OK if I use a locally hosted file though?

Thanks!

Code fragment
:
//SETUP THE JW PLAYER
jwplayer.key="mYveryLongACCesskeYgOesHeRe==";
jwplayer("PlayerElement").setup({

"playlist": [
{
"sources": [
{
"default": false,
"file": "<%=JWPReviewManifest%>",
"label": "0",
"type": "hls",
"preload": "auto"
}
]
}
],

mediaid: "<%=ReviewMediaID%>",
stretching: "exactfit",
autostart: true,
mute: true,
width: "100%",
aspectratio: "16:9",
abouttext: "Crown Copyright Material",
controls: false,
//seek: true, //doesn't work
//start: "20", //doesn't work
"primary": "html5",
"hlshtml": true
});

//VIDEO EVENT HANDLERS
jwplayer().onBeforePlay(function(){
jwplayer().seek("20");
});

1 Community Answers

Donni

JW Player Support Agent  
0 rated :

Are you running a pre-roll ad on this video? Can you use jwplayer().on(‘firstFrame’) or jwplayer().on(‘play’) instead of onBeforePlay?

Also, some of those configs are not necessary since they are already the default. Check out our updated config reference => https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/

This question has received the maximum number of answers.