问题描述
我正在尝试在本地服务器上的野生动物园中播放HTML5视频,但目前无法正常工作.这是问题所在:
I'm trying to play a HTML5 video in safari on my local server but currently it isn't working properly. Here's the issue:
我有代码:
<video width="580" height="340" controls>
<source src="media/video/test.mp4" type="video/mp4">
<source src="media/video/test.m4v" type="video/mp4">
<source src="media/video/test.ogv" type="video/ogv">
<source src="media/video/test.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
它只是说您的浏览器不支持视频标签".当我通过Safari在本地服务器上查看它时.我确保在IIS中添加mp4等MIME类型,然后重新启动,包括WWW服务.
It simply says 'Your browser does not support the video tag.' when I view it on my local server through Safari. I made sure to add the mp4 etc MIME types in IIS and restarted including the WWW service.
当我通过Safari中的 direct 路径观看视频时,该视频可以正常播放,并且可以在HTML中的HTML中播放该视频.
The video plays fine when I view it via direct path in Safari and it works playing it within Chrome from the HTML.
有什么想法吗?干杯!
更新
我的计算机上未安装Quicktime.安装后,将播放HTML5视频.
I didn't have Quicktime installed on my machine. Once installed, the HTML5 video played.
推荐答案
我的计算机上未安装Quicktime.安装后,将播放HTML5视频.
I didn't have Quicktime installed on my machine. Once installed, the HTML5 video played.
这篇关于在Windows的Safari中无法播放html5视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!