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": "",
"label": "0",
"type": "hls",
"preload": "auto"
}
]
}
],
mediaid: "",
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");
});
↧