getStatesAndProps
function getStatesAndProps(pc): object;
Get common states and props from PeerConnection
Parameters
| Parameter | Type | Description |
|---|---|---|
pc | PeerConnection | The peer connection to get the info |
Returns
object
| Name | Type | Default value |
|---|---|---|
connectionState | RTCPeerConnectionState | - |
iceConnectionState | RTCIceConnectionState | - |
iceGatheringState | RTCIceGatheringState | - |
signalingState | RTCSignalingState | - |
offerOptions | RTCOfferOptions | undefined | pc.offerOptions |
answerOptions | RTCAnswerOptions | undefined | pc.answerOptions |