Enum Class VideoEncoderConfiguration.COMPRESSION_PREFERENCE

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

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

    • PREFER_COMPRESSION_AUTO

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_COMPRESSION_AUTO
      -1: (Default) Automatic mode. The SDK will automatically select PREFER_LOW_LATENCY or PREFER_QUALITY based on the video scenario you set to achieve the best user experience.
    • PREFER_LOW_LATENCY

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_LOW_LATENCY
      0: Low latency preference. The SDK compresses video frames to reduce latency. This preference is suitable for scenarios where smoothness is prioritized and reduced video quality is acceptable.
    • PREFER_QUALITY

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_QUALITY
      1: High quality preference. The SDK compresses video frames while maintaining video quality. This preference is suitable for scenarios where video quality is prioritized.
  • 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()