createRTCPeerConnection
function createRTCPeerConnection(
options?,
listeners?,
existingPC?): ExtendedRTCPeerConnection;
A wrapper to create a RTCPeerConnection instance and subscribe the events
declared from the provided list of listeners.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | RTCConfiguration | The configuration for the RTCPeerConnection |
listeners? | RTCPeerConnectionEventListeners | A list of listeners to listen on the Peer Connection events |
existingPC? | RTCPeerConnection | Instead of creating a new Peer Connection, it always uses this instance instead. |