setRenderRotation method

Future<V2TXLiveCode> setRenderRotation(
  1. V2TXLiveRotation rotation
)

设置本地摄像头预览画面的旋转角度

只旋转本地预览画面,不影响推流出去的画面。

参数:

rotation 旋转角度 V2TXLiveRotation

返回值:

0 成功,更多信息请查看 V2TXLiveCode

Implementation

Future<V2TXLiveCode> setRenderRotation(V2TXLiveRotation rotation) async {
  var result = await _channel.invokeMethod(
      'setRenderRotation', {"rotation": rotation.index});
  return _liveCodeWithResult(result);
}