OrientationMode

Orientation mode for video encoding.

Enumerations

OrientationModeAdaptive
0: (Default) In this mode, the SDK outputs video in the same orientation as the captured video. The receiver rotates the video according to 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.
OrientationFixedLandscape
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.
OrientationFixedPortrait
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.