开发者

MPMoviePlayerController supported formats in iPad

According to the MPMoviePlayerController reference:

This class plays any movie or audio file supported in iOS. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4, .mpv, and .3gp and using one of the following compression standards:

  • H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (T开发者_开发知识库he Baseline profile does not support B frames.)
  • MPEG-4 Part 2 video (Simple Profile)

Does this mean that the highest video resolution that I can programatically play in an iPad is just 640x480? Or are the supported video formats for iPad specified somewhere else?

Thanks!


No. Although it does say "up to 640x480" this isn't true. I'm playing 1280x720 resolution videos in an app at the moment and they are working just fine.

For some reason the class reference doesn't give an exhaustive list of formats/extensions supported. As jeeva said above it's probably best to use mp4/m4v if you can.


Another list of supported media formats may be found in "iOS Technology Overview", sections "Audio Technologies" and "Video Technologies".


Technical Note TN2224 (Best Practices for Creating and Deploying HTTP Live Streaming Media for the iPhone and iPad) includes in its list of encoding settings the recommended pixel dimensions and compatibility with various devices. It currently lists a maximum of 1280x720 at 2540 Mbps and compatibility with the iPad 1 and 2. Note thath the limitation on the pixel dimensions in the document is more a matter of data rate than device compatibility.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜