我的视频没玩
// _itemFailedToPlayToEnd:
{
kind = 1;
new = 2;
old = 0;
}
Run Code Online (Sandbox Code Playgroud)
我的网址是
http://leuipe.fr.feedportal.com/c/3265/f/43169/s/2f1abb6/sc/35/l/0Lvideo0Blequipe0Bfr0Cvideo0Cd3b6e1d4cccs0Bhtml/story.htm
Run Code Online (Sandbox Code Playgroud)
我的代码是
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];
Run Code Online (Sandbox Code Playgroud)
小智 5
我也有同样的问题,
_itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;
}
Run Code Online (Sandbox Code Playgroud)
但我修复了它,给定的URL上没有文件.因此,请确保给定网址上有文件.
yon*_*nja -1
遇到了类似的问题,并发现视频的宽高比导致了错误。基本上,具有特定宽高比的视频可以在某些设备上运行,但不能在其他设备上运行:
设备 - 视频宽高比
希望这可以帮助。
| 归档时间: |
|
| 查看次数: |
6575 次 |
| 最近记录: |