Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>MediaDevices

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface MediaDevices
implements EventTarget
import { type MediaDevices } from "https://deno.land/x/windmill@v1.352.0/node_modules/evt/lib/types/lib.dom.d.ts";

Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.

Properties

ondevicechange: ((this: MediaDevices, ev: Event) => any) | null

Methods

enumerateDevices(): Promise<MediaDeviceInfo[]>
getSupportedConstraints(): MediaTrackSupportedConstraints
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>
addEventListener<K extends keyof MediaDevicesEventMap>(
type: K,
listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof MediaDevicesEventMap>(
type: K,
listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void