setCameraMirror method

  1. @override
void setCameraMirror(
  1. bool isMirror
)
override

Implementation

@override
void setCameraMirror(bool isMirror) async {
  TRTCRenderParams trtcRenderParams = TRTCRenderParams();
  trtcRenderParams.mirrorType =
      isMirror ? TRTCCloudDef.TRTC_VIDEO_MIRROR_TYPE_ENABLE : TRTCCloudDef.TRTC_VIDEO_MIRROR_TYPE_DISABLE;

  await trtcCloud?.setLocalRenderParams(trtcRenderParams);
  await trtcCloud?.setVideoEncoderMirror(isMirror);
}