Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class PeerConnectionConfig
- Object
- PeerConnectionConfig
How a
PeerConnection looks for a path to the other side.Constructors
public PeerConnectionConfig() |
Methods
Inherited methods
Constructor details
PeerConnectionConfig
public PeerConnectionConfig()Method details
addIceServer
public PeerConnectionConfig addIceServer(IceServer server)Adds a STUN or TURN server.
setRelayOnly
public PeerConnectionConfig setRelayOnly(boolean relayOnly)Uses only paths through a TURN relay. The other side then never learns
this device’s own addresses, at the cost of every call going through
the relay. Off by default.
isRelayOnly
public boolean isRelayOnly()getIceServers
public List<IceServer> getIceServers()