Add support for multiple ice server groups

This commit is contained in:
adel-signal
2024-10-15 11:29:47 -07:00
committed by Greyson Parrelli
parent 4f61b2ad33
commit 893ef5d08c
2 changed files with 50 additions and 27 deletions

View File

@@ -3,6 +3,7 @@ package org.whispersystems.signalservice.api.messages.calls;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collections;
import java.util.List;
public class TurnServerInfo {
@@ -22,6 +23,9 @@ public class TurnServerInfo {
@JsonProperty
private List<String> urlsWithIps;
@JsonProperty
private List<TurnServerInfo> iceServers;
public String getUsername() {
return username;
}
@@ -42,4 +46,8 @@ public class TurnServerInfo {
public List<String> getUrlsWithIps() {
return urlsWithIps;
}
public List<TurnServerInfo> getIceServers() {
return (iceServers != null) ? iceServers : Collections.emptyList();
}
}