Agora Java API Reference for Android
Classes | Public Attributes | List of all members
io.agora.rtc2.SimulcastConfig Class Reference

Configure video streams of different quality levels. More...

Classes

class  StreamLayerConfig
 Configures the parameters of a specific layer in multi-quality video streams. More...
 
enum  StreamLayerIndex
 Index of video streams of different quality levels. More...
 

Public Attributes

final StreamLayerConfig[] configs
 
boolean publishFallbackEnable
 

Detailed Description

Configure video streams of different quality levels.

Since
v4.6.0

Member Data Documentation

◆ configs

final StreamLayerConfig [] io.agora.rtc2.SimulcastConfig.configs
Initial value:
=
new StreamLayerConfig[StreamLayerIndex.STREAM_LAYER_COUNT_MAX.getValue()]

Configurations for multi-layer streaming: StreamLayerConfig.

◆ publishFallbackEnable

boolean io.agora.rtc2.SimulcastConfig.publishFallbackEnable

Whether to enable fallback publishing:

  • true: Enable fallback publishing. When the device performance or network is poor at the publishing end, the SDK will dynamically disable multiple video streams of different quality levels, from layer1 to layer6. At least the video streams of the highest and lowest quality are retained to maintain basic video continuity.
  • false: (Default) Disable fallback publishing.