Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

canTrickleIceCandidates

canTrickleIceCandidates: boolean | null

connectionState

connectionState: RTCPeerConnectionState

currentLocalDescription

currentLocalDescription: RTCSessionDescription | null

currentRemoteDescription

currentRemoteDescription: RTCSessionDescription | null

iceConnectionState

iceConnectionState: RTCIceConnectionState

iceGatheringState

iceGatheringState: RTCIceGatheringState

idpErrorInfo

idpErrorInfo: string | null

idpLoginUrl

idpLoginUrl: string | null

localDescription

localDescription: RTCSessionDescription | null

onconnectionstatechange

onconnectionstatechange: function | null

ondatachannel

ondatachannel: function | null

onicecandidate

onicecandidate: function | null

onicecandidateerror

onicecandidateerror: function | null

oniceconnectionstatechange

oniceconnectionstatechange: function | null

onicegatheringstatechange

onicegatheringstatechange: function | null

onnegotiationneeded

onnegotiationneeded: function | null

onsignalingstatechange

onsignalingstatechange: function | null

onstatsended

onstatsended: function | null

ontrack

ontrack: function | null

peerIdentity

peerIdentity: Promise<RTCIdentityAssertion>

pendingLocalDescription

pendingLocalDescription: RTCSessionDescription | null

pendingRemoteDescription

pendingRemoteDescription: RTCSessionDescription | null

remoteDescription

remoteDescription: RTCSessionDescription | null

sctp

sctp: RTCSctpTransport | null

signalingState

signalingState: RTCSignalingState

Methods

addEventListener

addIceCandidate

addTrack

addTransceiver

close

  • close(): void
  • Returns void

createAnswer

createDataChannel

  • Parameters

    Returns RTCDataChannel

createOffer

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • 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.

    Parameters

    Returns boolean

getConfiguration

  • Returns RTCConfiguration

getIdentityAssertion

  • getIdentityAssertion(): Promise<string>
  • Returns Promise<string>

getReceivers

  • Returns RTCRtpReceiver[]

getSenders

  • Returns RTCRtpSender[]

getStats

  • Parameters

    Returns Promise<RTCStatsReport>

getTransceivers

  • Returns RTCRtpTransceiver[]

removeEventListener

removeTrack

  • Parameters

    Returns void

setConfiguration

  • Parameters

    Returns void

setIdentityProvider

  • Parameters

    Returns void

setLocalDescription

  • Parameters

    Returns Promise<void>

setRemoteDescription

  • Parameters

    Returns Promise<void>

Generated using TypeDoc