MPMoviePlayerViewController notes "_serverConnectionDiedNotification"

While working with MPMoviePlayerViewController, I receive an error notification, as shown below, and an application crash.

_serverConnectionDiedNotification. Info - notification = Error Domain = AVFoundationErrorDomain Code = -11819 "Unable to complete the action" UserInfo = 0x5dfcb0 {NSLocalizedRecoverySuggestion = Try again later., NSLocalizedDescription = Unable to complete the action}, AVPlayer =, currentTime = 0.00

2012-05-27 15: 32: 41.777 AnswerMania [3885: 707] * Application terminated due to the uncaught exception "NSInvalidArgumentException", reason: "AVPlayerItem cannot be associated with more than one AVPlayer instance"

This does not always happen. I watched all the MpMoviePlayerController notifications, but this error is not observed. Is this related to connecting to the server? How can I observe serverConnectionDiedNotification?

+4
source share
1 answer

I had a similar problem when a calendar reminder appeared during video playback. this was solved for me without using an audio application session:

moviePlayer.useApplicationAudioSession = NO; 

EDIT: it is associated with the following error: NOT seen _serverConnectionDiedNotification:

 AVPlayerItem cannot be associated with more than one instance of AVPlayer 
+2
source

Source: https://habr.com/ru/post/1414582/


All Articles