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 to playAndRecord.

    Declaration

    Objective-C

    IVSBroadcastSessionAudioSessionStrategyPlayAndRecord

    Swift

    case playAndRecord = 0
  • The SDK controls AVAudioSession completely and will set the category to record. There is a known issue with the recordOnly category and AirPods. Please use playAndRecord if you wish to use AirPods.

    Declaration

    Objective-C

    IVSBroadcastSessionAudioSessionStrategyRecordOnly

    Swift

    case recordOnly = 1
  • 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 = 2