interface dom.MediaStreamTrack
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { MediaStreamTrack } = dom;
A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
Properties
onended: ((this: MediaStreamTrack, ev: Event) => any) | null
onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null
readonly
readyState: MediaStreamTrackStateMethods
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>
clone(): MediaStreamTrack
getCapabilities(): MediaTrackCapabilities
getConstraints(): MediaTrackConstraints
getSettings(): MediaTrackSettings
addEventListener<K extends keyof MediaStreamTrackEventMap>(): void
type: K,
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof MediaStreamTrackEventMap>(): void
type: K,
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any,
options?: boolean | EventListenerOptions,