适用于手机的视频格式
我查看了这个问题,但我不确定这是否是我的问题的答案与否。
我希望能够在移动网页上流式传输视频。我希望此页面与尽可能多的手机兼容。智能手机是最重要的,我需要它来工作:
- Android
- HTC(许多使用 Android,具有相同的兼容性?)
- iPhone
- 黑莓(较新的品牌,5.0 或更高版本,如果需要,但可能低至 4.0)
- Windows 手机
其余可以添加到我的“如果它能工作的话就好了..”列表。
我应该使用什么视频格式来完成所有这些?引用的SO问题建议使用mp4文件,但我也读到有些需要OOG文件(我认为是黑莓?)这是正确的吗?是否有一种格式至少适用于上述所有品牌?
我将尝试在所有受支持的手机上使用 HTML5(除了黑莓手机之外的所有手机,一些 Windows 手机涵盖了这一点)
我还了解到
I looked on this SO question but I am not sure if this is the answer to my question or not.
I want to be able to stream videos on a mobile web page. I want this page to be compatable with as many phones as I can. Smart phones are the most important, and I need it to work for:
- Android
- HTC (Many use Android, same compatibility?)
- iPhones
- Blackberries (newer brands, 5.0 or higher if need be, but possible as low as 4.0)
- Windows Phones
The rest can be added to my "it would be nice if it worked on.." list.
What video format should I use for all of these? The referenced SO question suggested mp4 files, but I have also read that some require OOG files (I think blackberry?) Is this correct? Is there one format that will work for at least all of the above brands?
I will be trying to use HTML5 for all supported phones (all but blackberry, and some windows phones cover this)
I have also read that the <object>
tag is the best bet for getting videos onto Blackberry and Windows phones, if that is at all helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有遇到过任何不支持 MPEG-4 容器格式的手机,包括 黑莓。高质量视频的事实上的视频标准是 H.264。我想说,如果目标是合理的新手机,那么这是一个非常安全的组合。如果您确实需要确保支持所有内容,那么 MPEG-4 容器格式以及 MPEG-4 Visual Simple Profile 已得到“所有人”的支持,至少可以追溯到 2004 年……
I haven't come a cross one single mobile that doesn't support the MPEG-4 container format, including blackberry. The sort of defacto video standard for high quality video is H.264. I would say that is a very safe combination if the target is reasonable new phones. If you really need to make sure to support everything there is, then MPEG-4 container format together with MPEG-4 Visual Simple Profile has been supported by "everyone" dating back to at least 2004...
我们测试了各种 Android 设备,所有最新型号 (Android 2.2/2.3) 都支持 MPEG 4/H.264,iPhone 和 Windows Phone 也是如此(据我所知,我个人没有尝试过) 。我不知道黑莓。
We tested a variety of Android devices and all of the recent models (Android 2.2/2.3) do support MPEG 4/H.264, the same goes for iPhone and afaik the Windows Phone (from what I read, I did not try personally). I don't know about Blackberry.