subscribes method

Future<int> subscribes(
  1. List<String> userIds,
  2. RCRTCMediaType type, [
  3. bool tiny = true
])

ZH

加入房间后, 订阅远端用户发布的资源, @param userIds 远端用户 UserId 列表 @param type 资源类型 @param tiny 视频小流, true:订阅视频小流 false:订阅视频大流 @return 0: 成功, 非0: 失败

EN

Subscribe to remote user's resources after joining room @param userIds List of remote user IDs @param type Resource type @param tiny Video stream quality: true for low-res, false for high-res @return 0: success, non-zero: failure

Implementation

Future<int> subscribes(
  List<String> userIds,
  RCRTCMediaType type, [
  bool tiny = true,
]) async {
  Map<String, dynamic> arguments = {
    'ids': userIds,
    'type': type.index,
    'tiny': tiny,
  };
  int code = await _channel.invokeMethod('subscribes', arguments) ?? -1;
  return code;
}