Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.ScreenCaptureParameters.AudioCaptureParameters Class Reference

## Public Member Functions
int | getSampleRate ()
int | getChannels ()
int | getCaptureSignalVolume ()
String | toString ()

## Public Attributes
int | sampleRate = 16000
int | channels = 2
int | captureSignalVolume = 100
boolean | allowCaptureCurrentApp = true

## Detailed Description

The audio configuration for the shared screen stream.

Only available for scenarios where `captureAudio` is `true`.

Since
  v3.7.0

## Member Data Documentation

## ◆ sampleRate

int io.agora.rtc2.ScreenCaptureParameters.AudioCaptureParameters.sampleRate = 16000

The audio sample rate (Hz). The default value is `16000`.

## ◆ channels

int io.agora.rtc2.ScreenCaptureParameters.AudioCaptureParameters.channels = 2

The number of audio channels. The default value is `2`, indicating dual channels.

## ◆ captureSignalVolume

int io.agora.rtc2.ScreenCaptureParameters.AudioCaptureParameters.captureSignalVolume = 100

The volume of the captured system audio. The value range is [0,100]. The default value is `100`.

## ◆ allowCaptureCurrentApp

boolean io.agora.rtc2.ScreenCaptureParameters.AudioCaptureParameters.allowCaptureCurrentApp = true

Whether capture currentApp's audio

- `true`：Capture(default)。
- `false`：Don't capture。