jwPlayer sendEvent 未在 IE 中启动

jwPlayer sendEvent not initiating in IE

本文关键字:启动 IE 未在 sendEvent jwPlayer      更新时间:2023-09-26

我有几个视频嵌入在HTML和JS中,我正在使用jQuery工具方法OnBeforeSeek:function(event,index)来查找当前视频并设置一个间隔来执行sendEvent以在找到视频后播放视频。下面的代码适用于所有浏览器,但IE除外

if (currentIsVideo.length > 0) {
              playLoop = setInterval(function () { currentIsVideo.each(function () { try { this.sendEvent('PLAY'); clearInterval(playLoop); } catch (e) { } }); }, 200);

有解决方法吗?

编辑:此代码在FireFox中也中断。我正在使用可滚动滚动浏览资产,前 2 个资产是使用 jwPlayer 嵌入在 HTML 中的视频。在Firefox中,我相信这打破了第一个视频后的可滚动性。

编辑2:不再在火狐中中断。使用的 sendEvent('PLAY', 'true')

我必须更新到最新版本的 jwPlayer 才能在 IE 中工作。我无法使用当前版本编辑任何 JS 对象。