AudioCaptureParameters
Configures audio parameters for screen sharing stream.
public static class AudioCaptureParameters {
public int sampleRate = 16000;
public int channels = 2;
public int captureSignalVolume = 100;
public boolean allowCaptureCurrentApp = true;
}
- Since
- Available since v3.7.0.
Takes effect only when captureAudio is set to true.
Properties
- sampleRate
- Audio sampling rate (Hz). Default is 16000.
- channels
- Number of audio channels. Default is 2 (stereo).
- captureSignalVolume
- Volume of captured system audio. Range: [0, 100]. Default is 100.
- allowCaptureCurrentApp
-
Note: This parameter only controls whether to capture audio from the current app. It does not control whether the captured audio is published to the channel. You need to configure it via theWhether to capture audio from the current app:
optionsparameter when callingjoinChannelor updateChannelMediaOptions.- true: (Default) Capture audio from the current app.
- false: Do not capture audio from the current app.