newPeerConnection(configuration)
Creates a new RTCPeerConnection object.
This is similar to the RTCPeerConnection constructor.
Parameters¶
| Name | Description |
|---|---|
configuration |
(Optional) Peer connection configuration object (e.g., ICE servers) |
Return Values¶
| Type | Description |
|---|---|
RTCPeerConnection |
A new peer connection object |
Code Example¶
let _pc = HorizonWebRtcRedirectionAPI.newPeerConnection(_configurations);