IVSSessionAudioSessionStrategy
enum IVSSessionAudioSessionStrategy : NSInteger {}
A value representing how the IVSBroadcastSession
will interact with AVAudioSession
.
-
The SDK controls
AVAudioSession
completely and will set the category toplayAndRecord
.Declaration
Objective-C
IVSSessionAudioSessionStrategyPlayAndRecord
-
The SDK controls the
AVAudioSession
completely and will set the category toplayAndRecord
. On devices with both handset and speaker, the speaker will be preferred.Declaration
Objective-C
IVSSessionAudioSessionStrategyPlayAndRecordDefaultToSpeaker
-
The SDK controls
AVAudioSession
completely and will set the category torecord
. There is a known issue with therecordOnly
category and AirPods. Please useplayAndRecord
if you wish to use AirPods.Declaration
Objective-C
IVSSessionAudioSessionStrategyRecordOnly
-
The SDK does not control
AVAudioSession
at all. If this strategy is selected only custom audio sources will be allowed. Microphone based sources will not be returned or added by any APIs.Declaration
Objective-C
IVSSessionAudioSessionStrategyNoAction
-
The SDK controls
AVAudioSession
completely and will set the category toplayAndRecord
. Options includeAVAudioSessionCategoryOptionMixWithOthers
and mode is set toAVAudioSessionModeVideoChat
. This option is used automatically when using the opt-in Stages functionality. When in a Stage call, do not change the audio session strategy manually.Declaration
Objective-C
IVSSessionAudioSessionStrategyStages