嗨,我已经在 MPMoviePlayerController 上工作,但现在我面临着这个问题,我可能是 xcode 或 ios 的版本问题
NSString*theMoviePath=[NSString stringWithFormat:@"%@/9441426768774.mp4", [[AppDelegate appdelegate] getDocumentDirectoryPath]];
AnandLog(@"theMovieURL :--->%@", theMoviePath);
NSURL*theMovieURL=[NSURL fileURLWithPath:theMoviePath];
self.moviePlayer=[[MPMoviePlayerController alloc] initWithContentURL:theMovieURL];
[self.moviePlayer.view setFrame:CGRectMake(40, 197, 240, 160)];
[self.moviePlayer prepareToPlay];
[self.moviePlayer setShouldAutoplay:NO];
// And other options you can look through the documentation.
[self.view addSubview:self.moviePlayer.view];
错误
heMovieURL :--->/Users/ndot/Library/Developer/CoreSimulator/Devices/B147415A-F1F1-4576-972B-D1AE2C36993D/data/Containers/Data/Application/36777A8E-DE7D-4B7F-A74F-DF0835568C5D/Documents/9441426768774.mp4
2015-03-20 18:47:51.948 SampleConcepts[3266:86205] 18:47:51.948 错误:98:错误'!obj'试图获取默认输入设备的采样率 2015-03-20 18:47:51.949 SampleConcepts [ 3266:86205] 18:47:51.949 错误:100:获取音频输入设备采样率时出错:'!obj' 2015-03-20 18:47:51.949 SampleConcepts[3266:86205] 18:47:51.949 警告:230:输入设备为0x0;'(null)' 2015-03-20 18:47:51.949 SampleConcepts[3266:86205] 18:47:51.949 警告:234:输出设备为 0x26;'AppleHDAEngineOutput:1B,0,1,2:0' 2015-03-20 18:47:51.949 SampleConcepts[3266:86205] 18:47:51.949 错误:404:错误'!obj' 2015-03-20 18: 47:51.949 SampleConcepts[3266:84774] 18:47:51.949 错误:404:错误 -66680 2015-03-20 18:47:51.949 SampleConcepts[3266:86205] 18:47:51.949 错误:113:
我的想法是问题问题可能出在xcode6.2 和 ios8.2 中,以前有人处理过这种情况吗?
指导我解决这个问题。