HTML5使用什么视频格式,为什么它与iPad上的Safari兼容 [英] What video format does HTML5 use and why is it compatible with Safari on the iPad

查看:108
本文介绍了HTML5使用什么视频格式,为什么它与iPad上的Safari兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML5支持哪种视频格式与iPhone / iPad兼容?我正在考虑将一个网站与一些教学视频放在一起,我现在感到困惑,因为我认为Apple移动设备只支持Quicktime。

What video format does HTML5 support that is compatible with the iPhone/iPad? I was thinking of putting together a website with some instructional videos and I'm now confused as I thought that only Quicktime was supported by Apple mobile devices.

推荐答案

它使用H.264 - 虽然这不被描述为必须由HTML5规范使用。大多数浏览器(IE9,Chrome,Safari)都使用H.264,但目前Firefox在使用视频标签时仅支持OGG。

It uses H.264 - though this isn't described as having to be used by the HTML5 spec. Most browsers (IE9, Chrome, Safari) use H.264, though currently Firefox only supports OGG when using the video tag.

如果您不确定该怎么做,尝试这个项目: http://code.google.com/p/html5media/ 允许您将视频标记与H.264视频一起使用,然后使用闪回后退将其向后移植到较旧的IE。

If you aren't sure what to do, try this project: http://code.google.com/p/html5media/ it lets you use the video tag with an H.264 video, then backports it to older IEs using a flash fallback.

这篇关于HTML5使用什么视频格式,为什么它与iPad上的Safari兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆