Class YSKOtherAudioPolicy

The class specifies the behavior of the component if the audio stream is used by another application.

This setting is specified using the otherAudioPolicy method of the YSKAudioSessionSettings class that is used by YSKAudioSessionHandler to configure an audio session.
Note.

If you are configuring an audio session yourself, you should use the -[AVAudioSession setCategory:withOptions:] system class method.

Class Methods

+ignoreOther

Ignores the other app's activity and mixes audio streams.

+interruptOther

Ends the other app's audio stream.

Method Detail

+ignoreOther

+ (instancetype)ignoreOther

Ignores the other app's activity and mixes audio streams.

Corresponds to the AVAudioSessionCategoryOptionMixWithOthers category.

Returns:

Object of the YSKOtherAudioPolicy class that corresponds to the selected setting.

+interruptOther

+ (instancetype)interruptOther

Ends the other app's audio stream.

Returns:

Object of the YSKOtherAudioPolicy class that corresponds to the selected setting.