Instance Property

isOtherAudioPlaying

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

Declaration

var isOtherAudioPlaying: Bool { get }

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 ambient 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

var secondaryAudioShouldBeSilencedHint: Bool

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