Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.VideoEncoderConfiguration.ORIENTATION_MODE Enum Reference

Video output orientation mode. More...

## Public Member Functions
int | getValue ()

## Public Attributes
| ORIENTATION_MODE_ADAPTIVE =(0)
| ORIENTATION_MODE_FIXED_LANDSCAPE =(1)
| ORIENTATION_MODE_FIXED_PORTRAIT =(2)

## Detailed Description

Video output orientation mode.

## Member Data Documentation

## ◆ ORIENTATION_MODE_ADAPTIVE

io.agora.rtc2.video.VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_ADAPTIVE =(0)

0: (Default) The output video always follows the orientation of the captured video. The receiver takes the rotational information passed on from the video encoder. This mode applies to scenarios where video orientation can be adjusted on the receiver.

- 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

io.agora.rtc2.video.VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_LANDSCAPE =(1)

1: In this mode, the SDK always outputs videos in landscape (horizontal) 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

io.agora.rtc2.video.VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT =(2)

2: In this mode, the SDK always outputs video in portrait (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.