muteRemoteCustomStream method

Future<int> muteRemoteCustomStream(
  1. String userId,
  2. String tag,
  3. RCRTCMediaType type,
  4. bool mute,
)

ZH

停止远端数据渲染 @param userId @param tag @param type @param mute @return 0: 成功, 非0: 失败

EN

Stop remote data rendering @param userId @param tag @param type @param mute @return 0: success, non-zero: failure

Implementation

Future<int> muteRemoteCustomStream(
  String userId,
  String tag,
  RCRTCMediaType type,
  bool mute,
) async {
  Map<String, dynamic> arguments = {
    'id': userId,
    'tag': tag,
    'type': type.index,
    'mute': mute,
  };
  int code =
      await _channel.invokeMethod('muteRemoteCustomStream', arguments) ?? -1;
  return code;
}