IVSSessionAudioSessionStrategy
enum IVSSessionAudioSessionStrategy : NSInteger {}
A value representing how the IVSBroadcastSession will interact with AVAudioSession.
-
The SDK controls
AVAudioSessioncompletely and will set the category toplayAndRecord.Declaration
Objective-C
IVSSessionAudioSessionStrategyPlayAndRecord -
The SDK controls the
AVAudioSessioncompletely 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
AVAudioSessioncompletely and will set the category torecord. There is a known issue with therecordOnlycategory and AirPods. Please useplayAndRecordif you wish to use AirPods.Declaration
Objective-C
IVSSessionAudioSessionStrategyRecordOnly -
The SDK does not control
AVAudioSessionat 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
AVAudioSessioncompletely and will set the category toplayAndRecord. Options includeAVAudioSessionCategoryOptionMixWithOthersand 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
IVSSessionAudioSessionStrategy Enumeration Reference