I have implemented a MPMoviePlayer in my app and when I try it with a sample video in .mov format it works well. But when I change movie-clip to a .mP4 or m4v it does not work, the app crashes (I have tried with a bunch of different movie-files. What can be wrong? Does anyone else have this problem?
问问题
49 次
1 回答
1
我不知道这是否回答了您的问题,但我对支持的文件格式进行了快速搜索。
另一个SO答案:
支持的格式 此类支持已在 iPod 或 iPhone 上正确播放的任何电影或音频文件。这包括流式内容和固定长度文件。对于电影文件,这通常意味着扩展名为 .mov、.mp4、.mpv 和 .3gp 并使用以下压缩标准之一的文件: 1. H.264 Baseline Profile Level 3.0 视频,在 30 分辨率下最高 640 x 480帧率。(Baseline 配置文件不支持 B 帧。) 2. MPEG-4 Part 2 视频(简单配置文件) 如果您使用此类播放音频文件,它会在播放音频时显示带有 QuickTime 徽标的白屏。对于音频文件,此类支持最高 48 kHz 的 AAC-LC 音频和最高 48 kHz 的 MP3(MPEG-1 音频层 3)立体声音频。
所以这就是我的猜测为什么:) 你能不能转换成 MOV ?
编辑:链接到引用来自的SO答案: 链接
于 2013-05-13T21:22:55.897 回答