Search code examples
iosobjective-cmpmovieplayercontrolleravassetwriter

Getting warning while recording " MP AVAudioSessionDelegateMediaPlayerOnly end interruption"


I have been recording video successfully in my app using AVAssetWriter for long time but today I start to see some strange warning comes when I stop recording,

Scenario:

  • I record the video & can record again the video multiple times [NO WARNINGS]
  • I play the video in MPMoviePlayerController [NO WARNINGS]
  • I record the video after playing the video and once I click stop recording I get the warning

Warning:

MP AVAudioSessionDelegateMediaPlayerOnly end interruption. Interruptor <RecorderServer> category <(null)> resumable <0>,  _state = 0

Does anyone know what might be the issue or had similar issue like I have?


Solution

  • It feels like I have solved my problem, although it was not a big issue just a minor mistake which I did,when I play video in MPMoviePlayerController , after I finish playing video using the notification, i was not releasing the player object, I thought it would be enough to unregister from the notification but it helped when i set the self.player=nil;