Skip to main content

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

ParameterTypeDescription
options?RTCConfigurationThe configuration for the RTCPeerConnection
listeners?RTCPeerConnectionEventListenersA list of listeners to listen on the Peer Connection events
existingPC?RTCPeerConnectionInstead of creating a new Peer Connection, it always uses this instance instead.

Returns

ExtendedRTCPeerConnection