Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class PeerConnectionConfig

  1. Object
  2. PeerConnectionConfig
How a PeerConnection looks for a path to the other side.

Constructors

public PeerConnectionConfig()

Methods

public PeerConnectionConfig addIceServer(IceServer server)Adds a STUN or TURN server.
public PeerConnectionConfig setRelayOnly(boolean relayOnly)Uses only paths through a TURN relay.
public boolean isRelayOnly()
public List<IceServer> getIceServers()

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()