Instance Property

otherAudioPlaying

A Boolean value indicating whether another app is currently playing audio.

Declaration

@property(readonly, getter=isOtherAudioPlaying) BOOL otherAudioPlaying;

Discussion

In iOS 8.0 and later applications should use secondaryAudioShouldBeSilencedHint instead of this property.

This property will be true if any other audio (including audio from an app using AVAudioSessionCategoryAmbient is playing, whereas the secondaryAudioShouldBeSilencedHint property is more restrictive in its consideration of whether primary audio from another application is playing.

See Also

Responding to Other Audio

secondaryAudioShouldBeSilencedHint

A Boolean value that indicates whether another application is playing audio.