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>
Video COMPRESSION PREFERENCE.
  • Enum Constant Details

    • PREFER_COMPRESSION_AUTO

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_COMPRESSION_AUTO
      (Default) SDK uses compression preference according to setVideoScenario API settings, real-time network state and other relevant data information. If API setVideoScenario set video scenario to APPLICATION_SCENARIO_LIVESHOW, then PREFER_QUALITY is used. If not, then PREFER_LOW_LATENCY is used. Also if network state is changed, SDK may change this parameter between PREFER_QUALITY and PREFER_LOW_LATENCY automatically to get the best QOE. We recommend using this option.
    • PREFER_LOW_LATENCY

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_LOW_LATENCY
      Prefer low latency, normally used in real-time communication
    • PREFER_QUALITY

      public static final VideoEncoderConfiguration.COMPRESSION_PREFERENCE PREFER_QUALITY
      Prefer quality in sacrifice of a degree of latency, usually around 30ms ~ 150ms, depends target fps
  • 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()