unsubscribe method
ZH
加入房间后, 取消订阅远端用户发布的资源
@param userIds 远端用户 UserId 列表
@param type 资源类型
@return 0: 成功, 非0: 失败
EN
Unsubscribe remote resources after joining room
@param userIds List of remote user IDs
@param type Resource type
@return 0: success, non-zero: failure
Implementation
Future<int> unsubscribe(String userId, RCRTCMediaType type) async {
Map<String, dynamic> arguments = {'id': userId, 'type': type.index};
int code = await _channel.invokeMethod('unsubscribe', arguments) ?? -1;
return code;
}