setRenderMirror method
Set the camera mirror type
Parameter:
mirrorType
V2TXLiveMirrorType
- V2TXLiveMirrorType.v2TXLiveMirrorTypeAuto Default value: The default image type. In this case, the front camera is mirrored, and the rear camera is not
- V2TXLiveMirrorType.v2TXLiveMirrorTypeEnable Both the front camera and the rear camera are switched to mirror mode
- V2TXLiveMirrorType.v2TXLiveMirrorTypeDisable Both the front camera and the rear camera are switched to non-mirror mode
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> setRenderMirror(V2TXLiveMirrorType mirrorType) async {
var result = await _channel.invokeMethod(
'setRenderMirror', {"mirrorType": mirrorType.index});
return _liveCodeWithResult(result);
}