使用MPMoviePlayerViewController时,我收到错误通知,如下所示,App崩溃。
_serverConnectionDiedNotification。信息 - 通知=错误域= AVFoundationErrorDomain代码= -11819“无法完成操作”UserInfo = 0x5dfcb0 {NSLocalizedRecoverySuggestion =稍后再试。,NSLocalizedDescription =无法完成操作},AVPlayer =,currentTime = 0.00
2012-05-27 15:32:41.777 AnswerMania [3885:707] * 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'AVPlayerItem无法与多个实例关联AVPlayer'
总是不会发生这种情况。我观察了所有MpMoviePlayerController通知,但无法观察到此错误。它与服务器连接有关吗?如何观察serverConnectionDiedNotification?
答案 0 :(得分:2)
播放视频时出现日历提醒时出现类似问题。它是通过不使用应用程序音频会话来解决的:
moviePlayer.useApplicationAudioSession = NO;
编辑: 它与以下错误有关,没有看到_serverConnectionDiedNotification:
AVPlayerItem cannot be associated with more than one instance of AVPlayer