介绍
提示
如果需要代看,可以联系我qq79691519
刷课
摆脱失去焦点暂停限制:
进入课程播放页面,右键查看框架源代码,找到了一个js/blur.js
里面有个判断是否失去焦点的函数:function checkFocus()
{
if((document.hasFocus()==false)&&(!videoPause)&&(testHided))
{
jwplayer("media"+currentMedia).play(false);
sco_computeTime();
videoPause=true;
stopFromInner=true;
}
else if((document.hasFocus()==true)&&(videoPause)&&stopFromInner)
{
jwplayer("media"+currentMedia).play(true);
sco_startTimer();
videoPause=false;
stopFromInner=false;
}
}
f12切换到console面板,输入checkFocus=function(){return true;}并回车,即可摆脱暂停限制。