setVideoOrientation abstract method
Sets the orientation of the video frame before custom video processing and encoding. The default value is Adaptive
.
You should set the orientation to Portrait
when using video effects or custom processing.
You should set the orientation to Portrait
or Landscape
when pushing a single stream to the CDN.
For details of different modes, see Video Orientation.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes: We recommend you set the orientation before joining room. The updates of encoding configurations and the orientation are asynchronous, therefore can cause a brief malfunction in preview if you change the orientation after joining room.
Implementation
Future<int?> setVideoOrientation(VideoOrientation orientation);