setRenderMirror method

Future<V2TXLiveCode> setRenderMirror(
  1. V2TXLiveMirrorType mirrorType
)

摄像头镜像类型

@param mirrorType V2TXLiveMirrorType

  • V2TXLiveMirrorTypeAuto 【默认值】: 默认镜像类型. 在这种情况下,前置摄像头的画面是镜像的,后置摄像头的画面不是镜像的
  • V2TXLiveMirrorTypeEnable: 前置摄像头 和 后置摄像头,都切换为镜像模式
  • V2TXLiveMirrorTypeDisable: 前置摄像头 和 后置摄像头,都切换为非镜像模式 @return 返回值 {@link V2TXLiveCode}
  • V2TXLIVE_OK: 成功

Implementation

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