Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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 为什么IE11在Windows Media Player中打开MP4文件而不是在浏览器中渲染?_Internet Explorer_Google Chrome_Video_Video Streaming_Mp4 - Fatal编程技术网

Internet explorer 为什么IE11在Windows Media Player中打开MP4文件而不是在浏览器中渲染?

Internet explorer 为什么IE11在Windows Media Player中打开MP4文件而不是在浏览器中渲染?,internet-explorer,google-chrome,video,video-streaming,mp4,Internet Explorer,Google Chrome,Video,Video Streaming,Mp4,我正在打开一个指向MP4文件的直接链接,该文件在Firefox和Chrome中都在浏览器的本机播放器中呈现。当我在IE11中加载它时,它会强制Windows Media Player中的视频顶部打开。问题是,当将其作为页面背景的一部分加载时,Chrome和FireFox都会在页面中正确呈现(使用jQuery插件),但在IE11中,它会再次打开Windows Media Player窗口。听起来像是直接打开视频文件,而不是将其嵌入站点 根据Degru在上的回答,您可能需要使用HTML5…标记,如下

我正在打开一个指向MP4文件的直接链接,该文件在Firefox和Chrome中都在浏览器的本机播放器中呈现。当我在IE11中加载它时,它会强制Windows Media Player中的视频顶部打开。问题是,当将其作为页面背景的一部分加载时,Chrome和FireFox都会在页面中正确呈现(使用jQuery插件),但在IE11中,它会再次打开Windows Media Player窗口。

听起来像是直接打开视频文件,而不是将其嵌入站点

根据Degru在上的回答,您可能需要使用HTML5
标记,如下所示:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

您的浏览器不支持视频标记。
是W3Schools文档吗

这是一个有效的例子