Class PeerConnection

Hierarchy

Constructors

Properties

_listeners: { answering?: EventListener<{ args: [] }>[]; closed?: EventListener<{ args: [] }>[]; connected?: EventListener<{ args: [] }>[]; iceFailed?: EventListener<{ args: [] }>[]; iceRestartAnswering?: EventListener<{ args: [] }>[]; iceRestartOffering?: EventListener<{ args: [] }>[]; offering?: EventListener<{ args: [] }>[]; reconnecting?: EventListener<{ args: [] }>[]; remoteStream?: EventListener<{ args: [MediaStream] }>[] } = {}

Type declaration

id: string
off: (<K>(type: K, callback: EventListener<PeerConnectionEventMap[K]>) => void) = ...

Type declaration

on: (<K>(type: K, callback: EventListener<PeerConnectionEventMap[K]>) => (() => void)) = ...

Type declaration

Accessors

  • get remoteStream(): MediaStream
  • Returns MediaStream

  • get rtcConnection(): RTCPeerConnection
  • Returns RTCPeerConnection

Methods

  • Returns void

  • Returns void

  • Parameters

    • stream: MediaStream

    Returns void

Generated using TypeDoc