AVAudioSessionModeVideoChat

Static AVAudioSessionModeVideoChat 

Source
pub unsafe static AVAudioSessionModeVideoChat: Option<&'static AVAudioSessionMode>
Available on crate feature AVAudioSessionTypes only.
Expand description

Only valid with kAudioSessionCategory_PlayAndRecord. Reduces the number of allowable audio routes to be only those that are appropriate for video chat applications. May engage appropriate system-supplied signal processing. Has the side effect of setting AVAudioSessionCategoryOptionAllowBluetoothHFP and AVAudioSessionCategoryOptionDefaultToSpeaker. Using this mode without the VoiceProcessing IO unit or AVAudioEngine with voice processing enabled will result in the following:

  • Chat-specific signal processing such as echo cancellation or automatic gain correction will not be loaded
  • Dynamic processing on input and output will be disabled resulting in a lower output playback level.

See also Apple’s documentation