下面是我的代码。
前向搜索被禁用并且它在桌面浏览器中工作。但是当它在移动浏览器中打开时,禁用前向搜索不起作用。
<div class="jw_player_box">
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'jwplayer/2.mp4',
flashplayer: "jwplayer/jwplayer.flash.swf",
width: '360',
height: '280',
});
var seek_okay = false;
var max_seen = 0.0;
jwplayer().onSeek(function (position, offset) {
if (!seek_okay) {
max_seen = Math.max(max_seen, position.position);
if (position.offset > position.position) {
seek_okay = true;
setTimeout(function(){jwplayer().seek(Math.min(max_seen, position.offset))},100);
}
} else {
seek_okay = false;
}
});
</script></div>
请有任何建议