m4v 文件无法在 IOS 上的 safari 浏览器中播放
我正在尝试将 .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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
修改 MIME 类型以读取 application/octet-stream 而不是 video/mp4 - 对我有用!
Modify the MIME type to read application/octet-stream instead of video/mp4 - worked for me!
我认为您的 mime 类型不正确,应该是:
.m4v = video/mp4
参考文献:
I think your mime type is incorrect and it should be:
.m4v = video/mp4
References:
一直没想明白,所以把视频放到了youtube上
Never figured this out, so we put the video on youtube