m4v 文件无法在 IOS 上的 safari 浏览器中播放

发布于 2024-11-24 08:19:26 字数 998 浏览 7 评论 0原文

我正在尝试将 .m4v 文件作为故障转移来播放,因为 IOS 仍然不允许 Flash。我可以通过一些浏览器在 Windows 上播放 .m4v 文件,但即使我从 iPad 直接访问服务器上的 .m4v 文件,它也无法播放。我所看到的只是黑屏。

我打开了调试控制台,但没有收到任何消息或看到任何内容。

我在我的个人网络服务器上部署了 .m4v 文件,并且可以从那里播放它。 MIME 类型设置正确。

这是 MIME 类型:

.m4v = video/x-m4v

还有什么可能设置错误?

这是我的 HTML 示例:

<video id="movie" width="320" height="240" preload controls>
    <source src="/SurroundHealth/videos/sample_ipod.m4v" />
    </object>
    <div class="fallback">
       <p>You must have an HTML5 capable browser.</p>
    </div>
</video>

这是 url:

http://dev.surroundhealth.net/surroundhealth/videos/test.html< /a>

I'm trying to have a .m4v file play as a failover since IOS still won't allow Flash. I can play the .m4v file on Windows through a few browsers, but even if I go directly to the .m4v file on my server from an iPad it won't play. All I see is a black screen.

I have the debug console open and I don't receive any messages or see any content.

I deployed the .m4v file on my personal web server and can play it from there. The MIME type is correctly set.

This is the MIME type:

.m4v = video/x-m4v

What else could be wrongly set?

Here is an example of my HTML:

<video id="movie" width="320" height="240" preload controls>
    <source src="/SurroundHealth/videos/sample_ipod.m4v" />
    </object>
    <div class="fallback">
       <p>You must have an HTML5 capable browser.</p>
    </div>
</video>

Here is the url:

http://dev.surroundhealth.net/surroundhealth/videos/test.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

愁以何悠 2024-12-01 08:19:26

修改 MIME 类型以读取 application/octet-stream 而不是 video/mp4 - 对我有用!

Modify the MIME type to read application/octet-stream instead of video/mp4 - worked for me!

凝望流年 2024-12-01 08:19:26

我认为您的 mime 类型不正确,应该是:

.m4v = video/mp4

参考文献:

http://en.wikipedia.org/wiki/MPEG-4_Part_14< /p>

I think your mime type is incorrect and it should be:

.m4v = video/mp4

References:

http://en.wikipedia.org/wiki/MPEG-4_Part_14

夏天碎花小短裙 2024-12-01 08:19:26

一直没想明白,所以把视频放到了youtube上

Never figured this out, so we put the video on youtube

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文