Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer Video.js Flash fallback仅在IE7/8中首次加载页面时起作用_Internet Explorer_Video_Video.js_Fallback - Fatal编程技术网

Internet explorer Video.js Flash fallback仅在IE7/8中首次加载页面时起作用

Internet explorer Video.js Flash fallback仅在IE7/8中首次加载页面时起作用,internet-explorer,video,video.js,fallback,Internet Explorer,Video,Video.js,Fallback,我对IE7和IE8中的video.js flash回退有问题。第一次加载包含视频的页面时,视频播放时一切正常。但是,如果您单击应用程序中另一个页面的链接,然后使用链接或浏览器返回按钮返回包含视频的页面,您将只看到一个黑色方块-视频将不会播放。但是,如果我重新加载页面,视频将再次按预期播放 有人在此处描述了相同的问题:。他们通过“在HTML标题中添加此项: V.options.flash.swf='http://'+document.domain+“/js/video js/video js.sw

我对IE7和IE8中的video.js flash回退有问题。第一次加载包含视频的页面时,视频播放时一切正常。但是,如果您单击应用程序中另一个页面的链接,然后使用链接或浏览器返回按钮返回包含视频的页面,您将只看到一个黑色方块-视频将不会播放。但是,如果我重新加载页面,视频将再次按预期播放

有人在此处描述了相同的问题:。他们通过“在HTML标题中添加此项: V.options.flash.swf='http://'+document.domain+“/js/video js/video js.swf?”;它强制IE7和IE8重新加载flash文件


我试过这个方法,但我一点运气都没有。有谁能告诉我如何解决这个问题,或者至少解释一下可能发生的情况,以及我应该如何排除故障。非常感谢。

videojs
ready函数中,调用
end
事件。将当前时间设为0适用于ie

var myPlayer = videojs("vidModal"); //where vidModal is the id
myPlayer.on('ended', function() {

    myPlayer.currentTime(0);
    myPlayer.pause();
    myPlayer.posterImage.hide();
});

videojs
ready函数中,调用
end
事件。将当前时间设为0适用于ie

var myPlayer = videojs("vidModal"); //where vidModal is the id
myPlayer.on('ended', function() {

    myPlayer.currentTime(0);
    myPlayer.pause();
    myPlayer.posterImage.hide();
});