SimulcastConfig

Configure video streams of different quality levels.

struct SimulcastConfig {
  struct StreamLayerConfig {
    VideoDimensions dimensions;
    int framerate;
    bool enable;
    StreamLayerConfig() : dimensions(0, 0), framerate(0), enable(false) {}
  };
  StreamLayerConfig configs[STREAM_LAYER_COUNT_MAX];
  bool publish_fallback_enable;
  SimulcastConfig(): publish_fallback_enable(false) {}
};
Since:
v.4.6.0.

Attributes

configs
Configurations for multi-layer streaming: StreamLayerConfig.
publish_fallback_enable
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.