Реализация динамического запроса TURN при подключении
This commit is contained in:
@@ -19,7 +19,8 @@ public class Packet28IceServers extends Packet {
|
||||
String url = stream.readString();
|
||||
String username = stream.readString();
|
||||
String credential = stream.readString();
|
||||
RTCIceServer iceServer = new RTCIceServer(url, username, credential);
|
||||
String transport = stream.readString();
|
||||
RTCIceServer iceServer = new RTCIceServer(url, username, credential, transport);
|
||||
iceServers.add(iceServer);
|
||||
}
|
||||
}
|
||||
@@ -33,6 +34,7 @@ public class Packet28IceServers extends Packet {
|
||||
stream.writeString(iceServer.getUrl());
|
||||
stream.writeString(iceServer.getUsername());
|
||||
stream.writeString(iceServer.getCredential());
|
||||
stream.writeString(iceServer.getTransport());
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user