setCameraMirror method
void
setCameraMirror(
- 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;
LiveKitLogger.info("$tag($hashCode) setLocalRenderParams:[trtcRenderParams:$trtcRenderParams]");
LiveKitLogger.info("$tag($hashCode) setVideoEncoderMirror:[isMirror:$isMirror]");
await trtcCloud?.setLocalRenderParams(trtcRenderParams);
await trtcCloud?.setVideoEncoderMirror(isMirror);
}