ORIENTATION_MODE

Video encoding orientation mode.

Enumerations

ORIENTATION_MODE_ADAPTIVE
0: (Default) In this mode, the SDK outputs video with the same orientation as the captured video. The receiver rotates the video based on the rotation information. This mode is suitable when the receiver can adjust the video orientation.
  • If the captured video is in landscape mode, the output video is also in landscape mode.
  • If the captured video is in portrait mode, the output video is also in portrait mode.
ORIENTATION_MODE_FIXED_LANDSCAPE
1: In this mode, the SDK outputs video in fixed landscape mode. If the captured video is in portrait mode, the video encoder crops it. This mode is suitable when the receiver cannot adjust the video orientation, such as in CDN streaming scenarios.
ORIENTATION_MODE_FIXED_PORTRAIT
2: In this mode, the SDK outputs video in fixed portrait mode. If the captured video is in landscape mode, the video encoder crops it. This mode is suitable when the receiver cannot adjust the video orientation, such as in CDN streaming scenarios.