Contents

isOtherAudioPlaying

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

Declaration

var isOtherAudioPlaying: Bool { get }

Discussion

This property returns true if any other audio is playing, including audio from an app using the ambient category. Most apps should instead use the secondaryAudioShouldBeSilencedHint property, because it’s more restrictive when considering whether primary audio from another app is playing.

See Also

Mixing with other audio