Global Variable

AVAudioSessionMediaServicesWereResetNotification

Posted when the media server restarts.

Declaration

const NSNotificationName AVAudioSessionMediaServicesWereResetNotification;

Discussion

Under rare circumstances, the system terminates and restarts its media services daemon. Respond to these events by reinitializing your app’s audio objects (such as players, recorders, converters, or audio queues) and resetting your audio session category, options, and mode configuration. Your app should not restart its media playback, recording, or processing until initiated by user action.

This notification has no userInfo dictionary.

This notification is posted on the main thread.

See Also

Responding to Audio Session Notifications

Responding to Audio Session Interruptions

Directly observe audio session notifications to ensure that your app responds to interruptions.

Responding to Audio Session Route Changes

Directly observe audio session notifications to ensure that your app responds to interruptions.

AVAudioSessionInterruptionNotification

Posted when an audio interruption occurs.

AVAudioSessionRouteChangeNotification

Posted when the system’s audio route changes.

AVAudioSessionSilenceSecondaryAudioHintNotification

Posted when the primary audio from other applications starts and stops.

AVAudioSessionMediaServicesWereLostNotification

Posted when the media server is terminated.