unsubscribeCustomStream method
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;
}