public interface IceServerConfig
class MyIceServerConfig implements IceServerConfig {
public Set<IceServer> getIceServers() {
Set<IceServerHandler.IceServer> iceServers = new HashSet<IceServer>();
iceServers.add(new IceServerConfig.IceServer("stun:relay.example.net:3478", "admin", "password"));
iceServers.add(new IceServerConfig.IceServer("turn:10.12.13.14:3478", "admin", "password"));
...
return iceServers;
}
}
WSCSession.Builder builder = WSCSession.Builder.create(...)
...
.withIceServerConfig(new MyIceServerConfig());
WSCSession session = sessionbuilder.build();
Modifier and Type | Interface and Description |
---|---|
static class |
IceServerConfig.IceServer
Configuration for an ICE server.
|
Modifier and Type | Method and Description |
---|---|
Set |
getIceServers()
Gets the list of ICE servers.
|
Set getIceServers()