0

我正在从库中选择一个视频。视频不在 iphone 4s(ios5) 中播放,它在 iphone 4(ios4) 中播放。视频为 .mov 格式。我正在静态拍摄 mp4 视频,它正在播放。有没有原因?请给任何建议。提前致谢

movieplayer=[[MPMoviePlayerController alloc] initWithContentURL:videourl];

    NSLog(@"url--%@",videourl);
if([movieplayer respondsToSelector:@selector(view)])
 {
    movieplayer.controlStyle = MPMovieControlStyleFullscreen;
    [movieplayer.view setFrame:self.view.bounds];
    [self.view addSubview:movieplayer.view];
     movieplayer.shouldAutoplay=true;
    [movieplayer play];
 }

它显示黑屏

4

1 回答 1

0

Can you check your video codec.

according to Apple web site only these codecs are supported.

H.264 video: up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats MPEG-4 video: up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

于 2012-10-04T16:54:57.713 回答