IVSBroadcastSessionAudioSessionStrategy
Objective-C
enum IVSBroadcastSessionAudioSessionStrategy {}
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
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 = 1
-
The SDK does not control
AVAudioSession
at all, it is up to the host application to it is set up correctly for recording.Declaration
Objective-C
IVSBroadcastSessionAudioSessionStrategyNoAction
Swift
case noAction = 2