createPeerConnection
function createPeerConnection(options, peerConnection?): PeerConnection;
Wrap RTCPeerConnection with polyfill the old APIs and simplifies the common logics
Parameters
| Parameter | Type | Description |
|---|---|---|
options | PeerConnectionOptions | Configuration for the peer connection |
peerConnection? | ExtendedRTCPeerConnection | Inject your own RTCPeerConnection, can be used for testing |