我的网站使用 jwplayer 嵌入了自托管视频和 youtube 视频,
pause,play 事件在这两种情况下都可以正常工作,但是 seek 甚至只能通过 self-host video 捕捉。
这两种情况使用相同的代码。
有人能告诉我我能做些什么来解决它吗?
这是我的代码:
playerInstance = jwplayer("player");
playerInstance.setup({
modes: [
file: '<{$youtuve_url}>',
width: $('#video').width(),
height: $('#video').height(),
autostart: false
});
playerInstance.on('seek',function(event){
console.log("seek");
} );