getPeerConnectionStates
function getPeerConnectionStates(pc): object;
Get the states from RTCPeerConnection
Parameters
| Parameter | Type | Description |
|---|---|---|
pc | | ExtendedRTCPeerConnection | PeerConnection | the peer connection to get the states |
Returns
object
| Name | Type |
|---|---|
get connectionState | RTCPeerConnectionState |
get iceConnectionState | RTCIceConnectionState |
get iceGatheringState | RTCIceGatheringState |
get signalingState | RTCSignalingState |