setRenderRotation method

Future<V2TXLiveCode> setRenderRotation(
  1. V2TXLiveRotation rotation
)

摄像头镜像类型 rotation 旋转角度 {@link V2TXLiveDef.V2TXLiveRotation}

  • V2TXLiveRotation0【默认值】: 0度, 不旋转
  • V2TXLiveRotation90: 顺时针旋转90度
  • V2TXLiveRotation180: 顺时针旋转180度
  • V2TXLiveRotation270: 顺时针旋转270度

@return 返回值 {@link V2TXLiveCode}

  • V2TXLIVE_OK: 成功

Implementation

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