ORIENTATION_MODE

Video output orientation mode.

Enumerations

ORIENTATION_MODE_ADAPTIVE
(0): (Default) The output video orientation always matches the captured video orientation. The receiver receives rotation info from the encoder. Suitable for scenarios where the receiver can adjust video orientation.
  • If the captured video is landscape, the output is landscape.
  • If the captured video is portrait, the output is portrait.
ORIENTATION_MODE_FIXED_LANDSCAPE
(1): Output video is always in landscape mode. If the captured video is portrait, the encoder crops it to fit. Suitable for scenarios where the receiver cannot handle rotation info, such as CDN live streaming.
ORIENTATION_MODE_FIXED_PORTRAIT
(2): Output video is always in portrait mode. If the captured video is landscape, the encoder crops it to fit. Suitable for scenarios where the receiver cannot handle rotation info, such as CDN live streaming.