
Seek does not seem to work with HLS
I am constructing a player from a playlist and attempting to seek it to a valid offset, right when it is built. I am trying to go to a set time that was stored and passed in.
This code worked with a previous version of JWPlayer, and now that I have upgraded to 7.10.7, it does not work any longer.
The offset, even after I seek, is always 0.
Here is some example code:
console.log('SEEKING TO ' + offset) // prints SEEKING TO 1618
player.seek(offset);
var position = Math.round(player.getPosition());
console.log(position); // prints 0
if (position != offset){
player.playlistItem(index).seek(offset); // index is 0
position = Math.round(player.getPosition());
console.log(position); // prints 0
}
What is the correct way to seek? This follows the documentation.
Thanks
Tamar