IVSSessionAudioSessionStrategy

enum IVSSessionAudioSessionStrategy : NSInteger {}

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

    IVSSessionAudioSessionStrategyPlayAndRecord
  • The SDK controls the AVAudioSession completely and will set the category to playAndRecord. On devices with both handset and speaker, the speaker will be preferred.

    Declaration

    Objective-C

    IVSSessionAudioSessionStrategyPlayAndRecordDefaultToSpeaker
  • 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

    IVSSessionAudioSessionStrategyRecordOnly
  • 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

    IVSSessionAudioSessionStrategyNoAction
  • The SDK controls AVAudioSession completely and will set the category to playAndRecord. Options include AVAudioSessionCategoryOptionMixWithOthers and mode is set to AVAudioSessionModeVideoChat. This option is used automatically when using the opt-in Stages functionality. When in a Stage call, do not change the audio session strategy manually.

    Declaration

    Objective-C

    IVSSessionAudioSessionStrategyStages