StreamLayerConfig

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

public class StreamLayerConfig {
    public VideoEncoderConfiguration.VideoDimensions dimensions;
    public int framerate;
    public boolean enable;
}
Since:
Available since v4.6.0.

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

Attributes

dimensions
Video frame size. See VideoEncoderConfiguration.VideoDimensions.
framerate
Frame rate (fps) of the local video capture. Default is 0.
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.