我正在使用C4 Alpha,我遇到了两个错误,我似乎无法弄清楚如何解决。我的代码设置如下:
-(void)setup {
[self setupFrames];
m1 = [[MyMovie alloc] initWithMovieName:@"d3.mov" andFrame:iPadLandscape];
[m1 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m1];
m2 = [[MyMovie alloc] initWithMovieName:@"e2.mov" andFrame:iPadLandscape];
[m2 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m2];
m3 = [[MyMovie alloc] initWithMovieName:@"e1.mov" andFrame:iPadLandscape];
[m3 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m3];
m4 = [[MyMovie alloc] initWithMovieName:@"d4.mov" andFrame:iPodPortrait];
[m4 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m4];
m5 = [[MyMovie alloc] initWithMovieName:@"o1.mov" andFrame:iPodLandscape];
[m5 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m5];
m6 = [[MyMovie alloc] initWithMovieName:@"o2.mov" andFrame:iPodLandscape];
[m6 addGesture:PAN name:@"panGesture" action:@"move:"];
[self.canvas addMovie:m6];
}
我遇到的两个错误是: - C4上的“AVPlayerStatusFailed” - “无法解码,此媒体所需的解码器正忙。”在我的画布上,加上画布中的一些视频显示为黑色方块。
我试着按照上一篇文章给出的答案,但我不知道将它应用到C4。
https://stackoverflow.com/a/8621889/1362038
任何想法如何解决这个问题?
答案 0 :(得分:5)
我看了一下这个问题。
最佳答案实际上是:https://stackoverflow.com/a/9933853/1218605
起初我认为这可能是C4Movie类构建方式的问题,或者是因为你正在播放的媒体的种类/大小。
但是,上面的链接描述了问题(直接来自Apple的开发人员支持):
由于硬件限制,AVFoundation仅限于4条视频流水线。这意味着在任何给定时间只能初始化4个视频播放器。