[英]IE-8 Flash fallback working offline but not online
For some unknown reason under IE-8 the flash fallback only works when running the site/page from the local file system (file://). 出于某些未知原因,在IE-8下,Flash回退仅在从本地文件系统(file://)运行站点/页面时有效。 When running online(htttp://) from an IIS server with mime types configured for MP4 the video won't load in IE-8.
从配置了MP4的MIME类型的IIS服务器在线运行(htttp://)时,视频不会在IE-8中加载。 Chrome does however load the video correctly both offline and online.
但是,Chrome确实可以离线和在线正确加载视频。
Flash fallback error: "FLASH: srcnotfound" is shown onscreen. Flash后备错误:屏幕上显示“ FLASH:srcnotfound”。
The video src is dynamically populated via javascript after the page has loaded and repopulated with a different src after a different video is clicked. 页面加载后,将通过javascript动态填充视频src,并在点击其他视频后用另一个src重新填充该视频。 I've verified via chrome and offline that the video src (which is a relative path) is accurate.
我已经通过Chrome和离线验证了视频src(相对路径)的准确性。
HTML HTML
<video id="Video1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="1010" height="568.125">
<source src="" type='video/mp4' />
<p class="vjs-no-js">Please enable JavaScript, and consider upgrading to a browser that supports HTML5 video</p>
</video>
Javascript 使用Javascript
function LoadVideo(vidSrc){
//Initialize Video.js library
videojs("Video1", {"autoplay":true}, function(){
this.src([{type: "video/mp4", src: vidSrc}]);
this.play();
});
}
IE9 and later using an emulation mode of IE8 and lower (compatibility view) will ignore <video> tags. IE9及更高版本使用IE8及更低版本的仿真模式(兼容性视图)将忽略<video>标签。
To provide flash fallback, nest object inside your video tags. 要提供Flash后备广告,请将对象嵌套在视频代码中。
<video> <视频>
<object> Your useragent does not support common video formats. <object>您的用户代理不支持常见的视频格式。 </object>
</对象>
</video> </视频>
additionally userAgents can disable flash content... ActiveX filtering, no-flash addons for webkit and gecko... etc... 另外,userAgents可以禁用Flash内容... ActiveX过滤,Webkit和Gecko的无Flash插件...等等...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.