interface dom.RTCPeerConnection
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.5.3/mod.ts";
const { RTCPeerConnection } = dom;
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.
Properties
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null
Methods
addEventListener<K extends keyof RTCPeerConnectionEventMap>(): void
type: K,
listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(): void
type: K,
listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any,
options?: boolean | EventListenerOptions,