new P2PClientConfiguration()
Members
-
<nullable> audioEncoding :Array.<Owt.Base.AudioEncodingParameters>
-
Encoding parameters for publishing audio tracks.
Type:
- Array.<Owt.Base.AudioEncodingParameters>
-
<nullable> rtcConfiguration :RTCConfiguration
-
It will be used for creating PeerConnection.
Type:
- RTCConfiguration
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:
- Array.<Owt.Base.VideoEncodingParameters>