unsubscribeCustomStream method

Future<int> unsubscribeCustomStream(
  1. String userId,
  2. String tag,
  3. RCRTCMediaType type
)

ZH

取消订阅自定义流 @param userId @param type @param tag @return 0: 成功, 非0: 失败

EN

Unsubscribe from custom stream @param userId @param type @param tag @return 0: success, non-zero: failure

Implementation

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