switchLiveRole method
ZH
切换直播角色 @return 0: 成功, 非0: 失败
EN
Switch live streaming role @return 0: Success, Non-zero: Failure
Implementation
Future<int> switchLiveRole(RCRTCRole role) async {
int code = await _channel.invokeMethod('switchLiveRole', role.index) ?? -1;
return code;
}