Package io.agora.rtc2

Enum Class Constants.StreamFallbackOptions

java.lang.Object
java.lang.Enum<Constants.StreamFallbackOptions>
io.agora.rtc2.Constants.StreamFallbackOptions
All Implemented Interfaces:
Serializable, Comparable<Constants.StreamFallbackOptions>, Constable
Enclosing class:
Constants

public static enum Constants.StreamFallbackOptions extends Enum<Constants.StreamFallbackOptions>
  • Enum Constant Details

    • STREAM_FALLBACK_OPTION_DISABLED

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_DISABLED
      0: No fallback operation to a lower resolution stream when the network condition is poor. Fallback to Scalable Video Coding (e.g. SVC) is still possible, but the resolution remains in high stream. The stream quality cannot be guaranteed.
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW
      1: (Default) Under poor network conditions, the receiver SDK will receive agora::rtc::VIDEO_STREAM_LOW. You can only set this option in setRemoteSubscribeFallbackOption.
    • STREAM_FALLBACK_OPTION_AUDIO_ONLY

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_AUDIO_ONLY
      2: Under poor network conditions, the SDK may receive agora::rtc::VIDEO_STREAM_LOW first, then agora::rtc::VIDEO_STREAM_LAYER_1 to agora::rtc::VIDEO_STREAM_LAYER_6 if the related layer exists. If the network still does not allow displaying the video, the SDK will receive audio only.
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1
      3~8: If the receiver SDK uses setRemoteSubscribeFallbackOption, it will receive one of the streams from agora::rtc::VIDEO_STREAM_LAYER_1 to agora::rtc::VIDEO_STREAM_LAYER_6 if the related layer exists when the network condition is poor. The lower bound of fallback depends on the STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_X.
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5
    • STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6

      public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6
  • Method Details

    • values

      public static Constants.StreamFallbackOptions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Constants.StreamFallbackOptions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()