Class PeerConnectionConfig

java.lang.Object
com.codename1.webrtc.PeerConnectionConfig

public final class PeerConnectionConfig extends Object
How a PeerConnection looks for a path to the other side.
  • 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()