Global Variable

AVAudioSessionMediaServicesWereResetNotification

A notification that’s 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’s category, options, and mode configuration. Your app shouldn’t restart its media playback, recording, or processing until initiated by user action.

This notification has no userInfo dictionary.

The system posts this notification on the main thread.

See Also

Responding to Audio Session Notifications

Responding to Audio Session Interruptions

Observe audio session notifications to ensure that your app responds appropriately to interruptions.

Responding to Audio Session Route Changes

Observe audio session notifications to ensure that your app responds appropriately to route changes.

AVAudioSessionInterruptionNotification

A notification that’s posted when an audio interruption occurs.

Interruption Flags

Constants that indicate the state of the audio session following an interruption.

AVAudioSessionRouteChangeNotification

A notification that’s posted when the system’s audio route changes.

AVAudioSessionSilenceSecondaryAudioHintNotification

A notification that’s posted when the primary audio from other applications starts and stops.

AVAudioSessionMediaServicesWereLostNotification

A notification that’s posted when the system terminates the media server.