setClientRole method
设置用户角色
在加入频道前或在频道中,用户可以通过setClientRole 接口设置本端模式为观众或主播模式。
role
用户角色. NERtcClientRole
Implementation
Future<int> setClientRole(int role) async {
IntValue reply = await _api.setClientRole(IntValue()..value = role);
return reply.value ?? -1;
}