VideoScenario

Video application scenario type.

Enumerations

APPLICATION_SCENARIO_GENERAL
(0): Default general scenario.
APPLICATION_SCENARIO_MEETING
Note: If you call setDualStreamMode(Constants.SimulcastStreamMode mode, SimulcastStreamConfig streamConfig) and set it to never send the low video stream (DISABLE_SIMULCAST_STREAM), the dynamic adjustment of the low video stream in the meeting scenario will not take effect.
(1): Suitable for meeting scenarios. The SDK automatically enables the following strategies:
  • In meeting scenarios where the video low stream requires high bitrate, the SDK enables multiple network congestion handling techniques to improve low stream performance and ensure smooth reception on the subscriber side;
  • Real-time monitoring of the number of subscribers to the high video stream, and dynamically adjusts configuration:
    • If no one subscribes to the high video stream, the SDK automatically reduces its bitrate and frame rate to save uplink bandwidth;
    • If someone subscribes to the high video stream, the SDK resets it to the VideoEncoderConfiguration set by the most recent call to setVideoEncoderConfiguration, or uses the following default values if not set: resolution 960 × 540, frame rate 15 fps, bitrate 1000 Kbps;
  • Real-time monitoring of the number of subscribers to the low video stream, and dynamically enables or disables the stream:
    • If no one subscribes to the low video stream, the SDK automatically disables the stream to save uplink bandwidth;
    • If someone subscribes to the low video stream, the SDK enables the stream and resets it to the SimulcastStreamConfig set by the most recent call to setDualStreamMode(Constants.SimulcastStreamMode mode, SimulcastStreamConfig streamConfig), or uses the following default values if not set: resolution 480 × 272, frame rate 15 fps, bitrate 500 Kbps.
APPLICATION_SCENARIO_1V1
(2): Suitable for one-on-one live streaming scenarios. To meet the requirements of low latency and high-quality video, the SDK optimizes strategies to improve performance in video quality, first frame rendering, latency on mid-to-low-end devices, and smoothness under weak network conditions.
Note: This enum value only applies to broadcaster-to-broadcaster scenarios.
APPLICATION_SCENARIO_LIVESHOW
(3): Suitable for live show scenarios. In this scenario, fast rendering and high image quality are critical. The SDK performs multiple optimizations, including automatically enabling audio and video frame accelerated rendering to minimize first frame delay (no need to call enableInstantMediaRendering), and enabling B-frame encoding to improve image quality and bandwidth efficiency. Even under poor network conditions or on low-end devices, it delivers higher video quality and smoother playback experience.