Package io.agora.rtc2.video
Enum Class VideoEncoderConfiguration.ORIENTATION_MODE
java.lang.Object
java.lang.Enum<VideoEncoderConfiguration.ORIENTATION_MODE>
io.agora.rtc2.video.VideoEncoderConfiguration.ORIENTATION_MODE
- All Implemented Interfaces:
Serializable,Comparable<VideoEncoderConfiguration.ORIENTATION_MODE>,Constable
- Enclosing class:
- VideoEncoderConfiguration
public static enum VideoEncoderConfiguration.ORIENTATION_MODE
extends Enum<VideoEncoderConfiguration.ORIENTATION_MODE>
The video orientation mode of the video.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription0: (Default) The adaptive mode.1.2. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ORIENTATION_MODE_ADAPTIVE
0: (Default) The adaptive mode. The output video always follows the orientation of the captured video, because the receiver takes the rotational information passed on from the video encoder. Mainly used between Agora’s SDKs. If the captured video is in landscape mode, the output video is in landscape mode. If the captured video is in portrait mode, the output video is in portrait mode. -
ORIENTATION_MODE_FIXED_LANDSCAPE
1. The landscape mode. The output video is always in landscape mode. If the captured video is in portrait mode, the video encoder crops it to fit the output. Applies to situations where the receiving end cannot process the rotational information. For example, CDN live streaming. -
ORIENTATION_MODE_FIXED_PORTRAIT
2. The portrait mode. The output video is always in portrait mode. If the captured video is in landscape mode, the video encoder crops it to fit the output. Applies to situations where the receiving end cannot process the rotational information. For example, CDN live streaming.
-
-
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-