Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RTCPeerConnection

Package version

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: { constructor: any; prototype: EventTarget }

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: ((this: RTCPeerConnection, ev: Event) => any) | null

ondatachannel

ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null

onicecandidate

onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null

onicecandidateerror

onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null

oniceconnectionstatechange

oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null

onicegatheringstatechange

onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null

onnegotiationneeded

onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null

onsignalingstatechange

onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null

onstatsended

onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null

ontrack

ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null

peerIdentity

pendingLocalDescription

pendingLocalDescription: RTCSessionDescription | null

pendingRemoteDescription

pendingRemoteDescription: RTCSessionDescription | null

remoteDescription

remoteDescription: RTCSessionDescription | null

sctp

sctp: RTCSctpTransport | null

signalingState

signalingState: RTCSignalingState

Methods

addEventListener

addIceCandidate

addTrack

  • Parameters

    Returns RTCRtpSender

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