我的视频无法播放
// _itemFailedToPlayToEnd:
{
kind = 1;
new = 2;
old = 0;
}
我的网址是
http://leuipe.fr.feedportal.com/c/3265/f/43169/s/2f1abb6/sc/35/l/0Lvideo0Blequipe0Bfr0Cvideo0Cd3b6e1d4cccs0Bhtml/story.htm
我的代码是
movieURL=[NSURL URLWithString:[_dic valueForKey:kRssLink]];
NSLog(@"%@",movieURL);
player = [[MPMoviePlayerController alloc] init];
[player setContentURL:movieURL];
[player.view setFrame:CGRectMake (0, 100, 320, 476)];
[self.view addSubview:player.view];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:player];
[player play];
最佳答案
我也遇到了同样的问题,
_itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;
}
但我已经修复了,没有文件位于给定的 URL 上。因此,请确保在给定的 URL 上有一个文件。
关于objective-c - _itemFailedToPlayToEnd : { kind = 1; new = 2; old = 0; },我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22527973/