muteRemoteStream method
ZH
停止远端数据渲染
@param userId 远端用户的 UserId
@param type 资源类型
@param mute true: 不渲染 false: 渲染
@return 0: 成功, 非0: 失败
EN
Stop remote data rendering
@param userId Remote user ID
@param type Resource type
@param mute true: stop rendering, false: render
@return 0: success, non-zero: failure
Implementation
Future<int> muteRemoteStream(
String userId,
RCRTCMediaType type,
bool mute,
) async {
Map<String, dynamic> arguments = {
'id': userId,
'type': type.index,
'mute': mute,
};
int code = await _channel.invokeMethod('muteRemoteStream', arguments) ?? -1;
return code;
}