setRenderRotation method
- V2TXLiveRotation rotation
设置本地渲染画面旋转角度
参数:
rotation
旋转角度 V2TXLiveRotation
- V2TXLiveRotation.v2TXLiveRotation0【默认值】: 0度, 不旋转
- V2TXLiveRotation.v2TXLiveRotation90 顺时针旋转90度
- V2TXLiveRotation.v2TXLiveRotation180 顺时针旋转180度
- V2TXLiveRotation.v2TXLiveRotation270 顺时针旋转270度
返回值:
0
成功,更多信息请查看 V2TXLiveCode
Implementation
Future<V2TXLiveCode> setRenderRotation(V2TXLiveRotation rotation) async {
var result = await _channel.invokeMethod(
'setRenderRotation', {"rotation": rotation.index});
return _liveCodeWithResult(result);
}