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 |
|---|---|---|
answerOptions | undefined | RTCAnswerOptions | pc.answerOptions |
connectionState | RTCPeerConnectionState | - |
iceConnectionState | RTCIceConnectionState | - |
iceGatheringState | RTCIceGatheringState | - |
offerOptions | undefined | RTCOfferOptions | pc.offerOptions |
signalingState | RTCSignalingState | - |