setIceServers method
Implementation
Future<void> setIceServers(List<QBIceServer> iceServers) async {
List<Map<String, Object>> iceServerMaps = [];
for (final iceServer in iceServers) {
Map<String, Object>? iceServerMap = QBIceServerMapper.qbIceServerToMap(iceServer);
if (iceServerMap != null) {
iceServerMaps.add(iceServerMap);
}
}
await _rtcConfigModule.invokeMethod(SET_ICE_SERVERS_METHOD, iceServerMaps);
}