【发布时间】:2015-05-23 07:32:12
【问题描述】:
我已经搜索了所有我能想到的地方。提前致谢。
我已经尝试添加编解码器属性并添加了 AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
到我的 .htaccess 文件。
所有其他浏览器,包括 IE,都能正确显示视频。 Safari 只是给了我后备。
这是代码:
<video controls="controls">
<!-- Provide mp4(h.264), ogg, and webm -->
<source src="_video/lgit01.m4v" type="video/mp4" /> <!-- Safari and IE - Put this first due to issues with the IOS not cycling down this list. -->
<source src="_video/lgit01.webm" type="video/webm" /> <!-- Higher quality than ogg. The browsers that support ogg also support webm -->
<source src="_video/lgit01.ogv" type="video/ogg" /> <!-- Supported by Chrome, Firefox, and Opera - Not IE or Safari -->
<object type="application/x-shockwave-flash" data="eh5v.files/html5video/flashfox.swf" width="1280" height="720" style="position:relative;">
<param name="movie" value="eh5v.files/html5video/flashfox.swf" />
<param name="allowFullScreen" value="true" />
<param name="flashVars" value="autoplay=true&controls=true&fullScreenEnabled=true&posterOnEnd=true&loop=false&poster=eh5v.files/html5video/lgit_-_01.jpg&src=lgit_-_01.m4v" />
<embed src="eh5v.files/html5video/flashfox.swf" width="1280" height="720" style="position:relative;" flashVars="autoplay=true&controls=true&fullScreenEnabled=true&posterOnEnd=true&loop=false&poster=eh5v.files/html5video/lgit_-_01.jpg&src=lgit_-_01.m4v" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_en" />
</object>
<p>your browsers don't support this shit</p>
</video>
我还尝试在 .m4v 之上将 .mp4 vid 添加到源中。我已经注释掉并删除了闪存嵌入以排除这种情况。这可能有什么问题?我有最新版本的 safari。我将 safari 指向 youtube 并得到一个页面,上面写着“糟糕,您的网络浏览器不再受支持”。它给了我一个后备链接。有人可以告诉我发生了什么吗?
谢谢你的时间。
乔什
【问题讨论】:
标签: html safari html5-video