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 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, it is up to the host application to it is set up correctly for recording.

    Declaration

    Objective-C

    IVSBroadcastSessionAudioSessionStrategyNoAction

    Swift

    case noAction = 2