OrientationMode
Orientation mode for video encoding.
Enumerations
- orientationModeAdaptive
- 0: (Default) In this mode, the SDK outputs video with the same orientation as the captured video. The receiving end rotates the video based on the received rotation info. This mode is suitable when the receiver can adjust video orientation.
- If the captured video is landscape, the output video is also landscape.
- If the captured video is portrait, the output video is also portrait.
- orientationModeFixedLandscape
- 1: In this mode, the SDK outputs video in fixed landscape mode. If the captured video is portrait, the encoder crops it. This mode is suitable when the receiver cannot adjust video orientation, such as in CDN streaming scenarios.
- orientationModeFixedPortrait
- 2: In this mode, the SDK outputs video in fixed portrait mode. If the captured video is landscape, the encoder crops it. This mode is suitable when the receiver cannot adjust video orientation, such as in CDN streaming scenarios.