Interface RTCPeerConnection

A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.

MDN Reference

Hierarchy

Properties

canTrickleIceCandidates: boolean
connectionState: RTCPeerConnectionState
currentLocalDescription: RTCSessionDescription
currentRemoteDescription: RTCSessionDescription
iceConnectionState: RTCIceConnectionState
iceGatheringState: RTCIceGatheringState
localDescription: RTCSessionDescription
onconnectionstatechange: ((this, ev) => any)

Type declaration

ondatachannel: ((this, ev) => any)

Type declaration

onicecandidate: ((this, ev) => any)

Type declaration

onicecandidateerror: ((this, ev) => any)

Type declaration

oniceconnectionstatechange: ((this, ev) => any)

Type declaration

onicegatheringstatechange: ((this, ev) => any)

Type declaration

onnegotiationneeded: ((this, ev) => any)

Type declaration

onsignalingstatechange: ((this, ev) => any)

Type declaration

ontrack: ((this, ev) => any)

Type declaration

pendingLocalDescription: RTCSessionDescription
pendingRemoteDescription: RTCSessionDescription
remoteDescription: RTCSessionDescription
signalingState: RTCSignalingState

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean