iPad上的MPMoviePlayerController支持哪些视频格式? [英] What are the video formats supported by MPMoviePlayerController on the iPad?
问题描述
当您使用iTunes将视频与iPhone同步时,如果我没有错误,视频的保存宽度不会超过640像素。
When you use iTunes to sync your videos with the iPhone the videos are always saved with no more than 640 pixels wide, if I am not wrong.
怎么样? iPad? iTunes与iPad同步的视频大小是多少? 1024×768?如果视频的尺寸低于1024x768怎么办?它会扩大规模吗?或者它会在播放时将视频保持在低分辨率和缩放比例吗?
What about the iPad? What is the size of videos iTunes syncs with iPad? 1024x768? and what if the video has a dimension below 1024x768? Will it scale up? or will it keep the video at low res and scale when you play?
问题是因为我正在使用MPMoviePlayerController,我需要知道期望的分辨率,所以我可以调整界面。
The question is because I am using the MPMoviePlayerController and I need to know what resolutions to expect, so I can adjust the interface.
谢谢。
推荐答案
来自MPMoviePlayerController docs:
From the MPMoviePlayerController docs:
支持的格式
此类支持任何已正确播放的电影或音频文件iPod或iPhone。这包括流内容和固定长度文件。对于电影文件,这通常意味着扩展名为.mov,.mp4,.mpv和.3gp的文件,并使用以下压缩标准之一:
1. H.264 Baseline Profile Level 3.0视频,高达640 x 480,30 fps。 (基线配置文件不支持B帧。)
2. MPEG-4第2部分视频(简单配置文件)
如果您使用此类播放音频文件,它会显示音频播放时带有QuickTime徽标的白色屏幕。对于音频文件,此类支持高达48 kHz的AAC-LC音频和高达48 kHz的MP3(MPEG-1 Audio Layer 3),立体声音频。
是的,您可以按比例放大以适应您的视图或全屏显示,与iPhone相同。
And yes, you can scale up to fit your view or go full screen, same as on iPhone.
这篇关于iPad上的MPMoviePlayerController支持哪些视频格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!