Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.SimulcastConfig.StreamLayerConfig Class Reference

Configures the parameters of a specific layer in multi-quality video streams. More...

## Public Member Functions
| StreamLayerConfig (VideoEncoderConfiguration.VideoDimensions dimensions, int framerate, boolean enable)
int | getFramerate ()
int | getDimensionsWidth ()
int | getDimensionsHeight ()
boolean | isEnabled ()

## Public Attributes
VideoEncoderConfiguration.VideoDimensions | dimensions
int | framerate
boolean | enable

## Detailed Description

Configures the parameters of a specific layer in multi-quality video streams.

Since
  v4.6.0

Used to configure the resolution, frame rate, and enable status of a specific layer in multi-quality video streams.

## Member Data Documentation

## ◆ dimensions

VideoEncoderConfiguration.VideoDimensions io.agora.rtc2.SimulcastConfig.StreamLayerConfig.dimensions

Video frame size. See `VideoEncoderConfiguration.VideoDimensions`.

## ◆ framerate

int io.agora.rtc2.SimulcastConfig.StreamLayerConfig.framerate

Frame rate (fps) of the local video capture. Default is 0.

## ◆ enable

boolean io.agora.rtc2.SimulcastConfig.StreamLayerConfig.enable

Whether to enable the video stream for the corresponding layer. Default is `false`.

- `true`: Enables the video stream for the corresponding layer.
- `false`: (Default) Disables the video stream for the corresponding layer.