UNPKG

extendable-media-recorder

Version:

An extendable drop-in replacement for the native MediaRecorder.

18 lines 764 B
import { TBlobEventHandler, TErrorEventHandler, TEventHandler, TRecordingState } from '../types'; import { IEventTarget } from './event-target'; import { IMediaRecorderEventMap } from './media-recorder-event-map'; export interface IMediaRecorder extends IEventTarget<IMediaRecorderEventMap> { readonly mimeType: string; ondataavailable: null | TBlobEventHandler<this>; onerror: null | TErrorEventHandler<this>; onpause: null | TEventHandler<this>; onresume: null | TEventHandler<this>; onstart: null | TEventHandler<this>; onstop: null | TEventHandler<this>; readonly state: TRecordingState; pause(): void; resume(): void; start(timeslice?: number): void; stop(): void; } //# sourceMappingURL=media-recorder.d.ts.map