Enum Class VideoEncoderConfiguration.ENCODING_PREFERENCE

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

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

    • PREFER_AUTO

      public static final VideoEncoderConfiguration.ENCODING_PREFERENCE PREFER_AUTO
      -1: Adaptive preference. The SDK automatically selects the optimal encoding type for encoding based on factors such as platform and device type.
    • PREFER_SOFTWARE

      public static final VideoEncoderConfiguration.ENCODING_PREFERENCE PREFER_SOFTWARE
      0: Software coding preference. The SDK prefers software encoders for video encoding.
    • PREFER_HARDWARE

      public static final VideoEncoderConfiguration.ENCODING_PREFERENCE PREFER_HARDWARE
      1: Hardware encoding preference. The SDK prefers a hardware encoder for video encoding. When the device does not support hardware encoding, the SDK automatically uses software encoding and reports the currently used video encoder type through `hwEncoderAccelerating` in the `onLocalVideoStats` callback.
  • 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()