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,
listener: EventListenerOrEventListenerObject,
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,
listener: EventListenerOrEventListenerObject,
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
§
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]§Methods
§
addEventListener<K extends keyof MediaRecorderEventMap>(
[src]type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof MediaRecorderEventMap>(
[src]type: K,
listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void