setVideoRotationMode abstract method

Future<int?> setVideoRotationMode(
  1. VideoRotationMode rotationMode
)

Sets the orientation of the video capture. By default, the App direction is used as the orientation reference.

During rendering, the receiving client rotates the video in the same way as the sending client does.

rotationMode: Rotation reference can be the orientation of the App or gravity.

Return value:

Notes:

  • The orientation setting is not effective to screen-sharing stream.
  • If the video capture is on, the setting will be effective once you call this API. If the video capture is off, the setting will be effective on when capture starts.
  • See Video Rotation for more details.

Implementation

Future<int?> setVideoRotationMode(VideoRotationMode rotationMode);