IVSBroadcastSessionAudioSessionStrategy
Objective-C
enum IVSBroadcastSessionAudioSessionStrategy : NSInteger {}
Swift
enum AudioSessionStrategy : Int
A value representing how the IVSBroadcastSession
will interact with AVAudioSession
.
-
The SDK controls
AVAudioSession
completely and will set the category toplayAndRecord
.Declaration
Objective-C
IVSBroadcastSessionAudioSessionStrategyPlayAndRecord
Swift
case playAndRecord = 0
-
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
IVSBroadcastSessionAudioSessionStrategyPlayAndRecordDefaultToSpeaker
Swift
case playAndRecordDefaultToSpeaker = 1
-
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
IVSBroadcastSessionAudioSessionStrategyRecordOnly
Swift
case recordOnly = 2
-
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
IVSBroadcastSessionAudioSessionStrategyNoAction
Swift
case noAction = 3