setVideoRotationMode method

FutureOr<int> setVideoRotationMode(
  1. ByteRTCVideoRotationMode rotationMode
)

@hidden(macOS) @detail api @hiddensdk(audiosdk) @brief 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. @param rotationMode Rotation reference can be the orientation of the App or gravity. Refer to ByteRTCVideoRotationMode{@link #ByteRTCVideoRotationMode} for details. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - The orientation setting is effective for internal video capture only. That is, the orientation setting is not effective to the custom video source or the 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.

Implementation

FutureOr<int> setVideoRotationMode(
    ByteRTCVideoRotationMode rotationMode) async {
  return await nativeCall('setVideoRotationMode:', [rotationMode.$value]);
}