subscribeCustomStream method
ZH
订阅自定义流
@param userId
@param type
@param tag
@param tiny
@return 0: 成功, 非0: 失败
EN
Subscribe to custom stream
@param userId User identifier
@param type Stream type
@param tag Stream tag
@param tiny Tiny flag
@return 0: success, non-zero: failure
Implementation
Future<int> subscribeCustomStream(
String userId,
String tag,
RCRTCMediaType type,
bool tiny,
) async {
Map<String, dynamic> arguments = {
'id': userId,
'tag': tag,
'type': type.index,
'tiny': tiny,
};
int code =
await _channel.invokeMethod('subscribeCustomStream', arguments) ?? -1;
return code;
}