Global Variable

AVAudioSessionMediaServicesWereLostNotification

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

Declaration

const NSNotificationName AVAudioSessionMediaServicesWereLostNotification;

Discussion

The system posts this notification when the media server first becomes unavailable. Most apps don’t need to subscribe to this notification and should instead subscribe to the AVAudioSessionMediaServicesWereResetNotification notification. However, you can use this notification as a cue to take any appropriate steps to handle requests that come in before the server restarts.

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.

AVAudioSessionMediaServicesWereResetNotification

A notification that’s posted when the media server restarts.