Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MediaRecorder

interface MediaRecorder extends EventTarget {
readonly audioBitsPerSecond: number;
readonly mimeType: string;
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
readonly state: RecordingState;
readonly stream: MediaStream;
readonly videoBitsPerSecond: number;
addEventListener<K extends keyof MediaRecorderEventMap>(
type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
pause(): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(
type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
requestData(): void;
resume(): void;
start(timeslice?: number): void;
stop(): void;
}
var MediaRecorder: {
prototype: MediaRecorder;
new (stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
isTypeSupported(type: string): boolean;
}
;

§Extends

§Properties

§
readonly audioBitsPerSecond: number
[src]
§
readonly mimeType: string
[src]
§
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null
[src]
§
onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null
[src]
§
onpause: ((this: MediaRecorder, ev: Event) => any) | null
[src]
§
onresume: ((this: MediaRecorder, ev: Event) => any) | null
[src]
§
onstart: ((this: MediaRecorder, ev: Event) => any) | null
[src]
§
onstop: ((this: MediaRecorder, ev: Event) => any) | null
[src]
§
readonly state: RecordingState
[src]
§
readonly stream: MediaStream
[src]
§
readonly videoBitsPerSecond: number
[src]

§Methods

§
addEventListener<K extends keyof MediaRecorderEventMap>(
type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
pause(): void
[src]
§
removeEventListener<K extends keyof MediaRecorderEventMap>(
type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
requestData(): void
[src]
§
resume(): void
[src]
§
start(timeslice?: number): void
[src]
§
stop(): void
[src]