Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

JWPlayer .seek() Not working with HLS Adaptive streaming

$
0
0
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"); });

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>