【问题标题】:Safari not displaying HTML5 video(already added mime types)Safari 不显示 HTML5 视频(已添加 mime 类型)
【发布时间】: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&amp;controls=true&amp;fullScreenEnabled=true&amp;posterOnEnd=true&amp;loop=false&amp;poster=eh5v.files/html5video/lgit_-_01.jpg&amp;src=lgit_-_01.m4v" />
        <embed src="eh5v.files/html5video/flashfox.swf" width="1280" height="720" style="position:relative;"  flashVars="autoplay=true&amp;controls=true&amp;fullScreenEnabled=true&amp;posterOnEnd=true&amp;loop=false&amp;poster=eh5v.files/html5video/lgit_-_01.jpg&amp;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


    【解决方案1】:

    发布此问题后,堆栈溢出在侧边栏中显示了更多相关项,我找到了解决方案。这是为了简单地更新 Quicktime。谢谢

    【讨论】:

      猜你喜欢
      • 2014-04-27
      • 2017-09-29
      • 1970-01-01
      • 1970-01-01
      • 2015-08-27
      • 1970-01-01
      • 2014-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多