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