
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));
}
}
});