我刚刚使用AVPlayerView为OS X创建了一个非常简单的应用程序,它使用AVPlayer对象来显示和回放媒体内容。
self.playerView.player = [AVPlayer playerWithURL:self.fileUrl];
[self.view addSubview:self.playerView];
播放视频有效,但我收到了以下错误:
[12:37:28.613] itemasync_CopyProperty signalled err=-12785 (kFigBaseObjectError_Invalidated) (invalidated) at /SourceCache/CoreMedia/CoreMedia-1562.235/Prototypes/Player/FigPlayer_Async.c line 2088
和
<<< FFR_Movie >>> ParseEditListAtom: numEntries not consistent with atom data length
<<< FFR_Movie >>> ParseSampleSizeAtom: numEntries not consistent with atom data length
<<< FFR_Movie >>> ParseSyncSampleAtom: numEntries not consistent with atom data length
<<< FFR_Movie >>> ParseChunkOffset64Atom: numEntries not consistent with atom data length
<<< FFR_Movie >>> ParseEditListAtom: numEntries not consistent with atom data length
我在网上看到其他人遇到类似问题,但没有找到答案。 我正在播放的项目是来自WWDC 2013的会话606(a.mov)