我的网站使用jwplayer嵌入了自托管视频和youtube视频,
pause,play事件在这两种情况下都工作得很好,但是seek甚至只能通过自主式视频捕获。
这两个案例使用相同的代码。
谁能告诉我我能做些什么来修复它?
下面是我的代码:
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");
} );发布于 2015-09-06 23:15:59
删除modes:[
playerInstance = jwplayer("player");
playerInstance.setup({
file: '<{$youtuve_url}>',
width: $('#video').width(),
height: $('#video').height(),
autostart: false
});
playerInstance.on('seek',function(event){
console.log("seek");
} );https://stackoverflow.com/questions/32424735
复制相似问题