Enum Class VideoEncoderConfiguration.DEGRADATION_PREFERENCE

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

public static enum VideoEncoderConfiguration.DEGRADATION_PREFERENCE extends Enum<VideoEncoderConfiguration.DEGRADATION_PREFERENCE>
  • Enum Constant Details

    • MAINTAIN_AUTO

      public static final VideoEncoderConfiguration.DEGRADATION_PREFERENCE MAINTAIN_AUTO
      -1: (Default) Automatic mode. The SDK will automatically select MAINTAIN_FRAMERATE, MAINTAIN_BALANCED or MAINTAIN_RESOLUTION based on the video scenario you set, in order to achieve the best overall quality of experience (QoE).
    • MAINTAIN_QUALITY

      public static final VideoEncoderConfiguration.DEGRADATION_PREFERENCE MAINTAIN_QUALITY
      0: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
    • MAINTAIN_FRAMERATE

      public static final VideoEncoderConfiguration.DEGRADATION_PREFERENCE MAINTAIN_FRAMERATE
      1: Degrade resolution in order to maintain framerate.
    • MAINTAIN_BALANCED

      public static final VideoEncoderConfiguration.DEGRADATION_PREFERENCE MAINTAIN_BALANCED
      2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MAINTAIN_BALANCED has a lower reduction than MAINTAIN_QUALITY and MAINTAIN_FRAMERATE, and this preference is suitable for scenarios where both smoothness and video quality are a priority.
    • MAINTAIN_RESOLUTION

      public static final VideoEncoderConfiguration.DEGRADATION_PREFERENCE MAINTAIN_RESOLUTION
      3: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
    • DISABLED

      4: Disabled VQC adjustion.
  • Method Details

    • 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

      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()