ios – MPMoviePlayerViewController观察’_serverConnectionDiedNotification’

ios – MPMoviePlayerViewController观察’_serverConnectionDiedNotification’,第1张

概述使用MPMoviePlayerViewController时,我收到错误通知,如下所示,应用程序崩溃. _serverConnectionDiedNotification. Info — notification=Error Domain=AVFoundationErrorDomain Code=-11819 “Cannot Complete Action” UserInfo=0x5dfcb0 { 使用MPMovIEPlayerVIEwController时,我收到错误通知,如下所示,应用程序崩溃.

_serverConnectionDiednotification. Info — notification=Error Domain=AVFoundationErrorDomain Code=-11819 “Cannot Complete Action” UserInfo=0x5dfcb0 {NSLocalizedRecoverySuggestion=Try again later.,NSLocalizedDescription=Cannot Complete Action},AVPlayer =,currentTime = 0.00

2012-05-27 15:32:41.777 AnswerMania[3885:707] * Terminating app due to uncaught exception ‘NSinvalidargumentexception’,reason: ‘An AVPlayerItem cannot be associated with more than one instance of AVPlayer’

这不会发生.我观察了所有MpMovIEPlayerController通知,但无法观察到此错误.它与服务器连接有关吗?如何观察serverConnectionDiednotification?

解决方法 播放视频时出现日历提醒时出现类似问题.它是通过不使用应用程序音频会话为我解决的:

movIEPlayer.useApplicationAudioSession = NO;

编辑:
它与以下错误有关,没有看到_serverConnectionDiednotification:

AVPlayerItem cannot be associated with more than one instance of AVPlayer
总结

以上是内存溢出为你收集整理的ios – MPMoviePlayerViewController观察’_serverConnectionDiedNotification’全部内容,希望文章能够帮你解决ios – MPMoviePlayerViewController观察’_serverConnectionDiedNotification’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1034802.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存