setVideoRotationMode method

FutureOr<int> setVideoRotationMode(
  1. ByteRTCVideoRotationMode rotationMode
)

@hidden(macOS) @detail api @hiddensdk(audiosdk) @author wangjunlin.3182 @brief 设置采集视频的旋转模式。默认以 App 方向为旋转参考系。
接收端渲染视频时,将按照和发送端相同的方式进行旋转。 @param rotationMode 视频旋转参考系为 App 方向或重力方向,参看 ByteRTCVideoRotationMode{@link #ByteRTCVideoRotationMode}。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note - 旋转仅对内部视频采集生效,不适用于外部视频源和屏幕源。 - 调用该接口时已开启视频采集,将立即生效;调用该接口时未开启视频采集,则将在采集开启后生效。 - 更多信息请参考视频采集方向

Implementation

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