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

It has issue. I can't seek.


jwplayer("player1").setup({
width: "100%",
height: "100%",
stretching: "fill",
autostart: true,
repeat: true,
controls: true,
mute: false,
volume: 50,
playlist: [{
sources: [{"file": "http://draco.streamingwizard.com/wizard/_definst_/mp4:demo/sample.mp4/playlist.m3u8"}]
}],
events: {
onComplete: function () { console.log("The playback end!!!"); },
onVolume: function (e) {
console.log("The sound change!!!");
localStorage.setItem('volume', JSON.stringify(e.volume));
},
onReady: function () {
console.log("Ready!!!");
jwplayer().seek(30);
},
onPlay: function () {
console.log("Start playing!!!");
localStorage.setItem('mute', JSON.stringify(false));
},
onPause: function () { console.log("Pause!!!");
playStatue = false;
},
onBufferChange: function () { console.log("Buffer change!!!"); },
onBufferFull: function () { console.log("Video buffer!!!"); },
onError: function (obj) { console.log("Player error!!!" + obj.message); },
onFullscreen: function (obj) { if (obj.fullscreen) { console.log("Full screen"); } else { console.log("The non full screen"); } },
onMute: function (obj) { console.log("Mute / unmute");
localStorage.setItem('mute', JSON.stringify(obj.mute));
}
}
});

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Is the issue you are reporting regarding these lines?
onReady: function () {
console.log(“Ready!!!”);
jwplayer().seek(30);
},

You may want to try putting the seek call in the onPlay handler -

This question has received the maximum number of answers.