Class: P2PClientConfiguration

.P2P. P2PClientConfiguration

Configuration for P2PClient.


new P2PClientConfiguration()

Members


<nullable> audioEncoding :Array.<Owt.Base.AudioEncodingParameters>

Encoding parameters for publishing audio tracks.

Type:

<nullable> rtcConfiguration :RTCConfiguration

It will be used for creating PeerConnection.

Type:
  • RTCConfiguration
See:
Example
// Following object can be set to p2pClientConfiguration.rtcConfiguration.
{
  iceServers: [{
     urls: "stun:example.com:3478"
  }, {
    urls: [
      "turn:example.com:3478?transport=udp",
      "turn:example.com:3478?transport=tcp"
    ],
     credential: "password",
     username: "username"
  }
}

<nullable> videoEncoding :Array.<Owt.Base.VideoEncodingParameters>

Encoding parameters for publishing video tracks.

Type: