Function useMediaRecorder
useMediaRecorder( options?: CustomMediaRecorderOptions,): { cleanup: () => void; clearRecordedData: () => void; getBlob: (type?: string) => Blob; isTypeSupported: (type: string) => boolean; pause: () => void; requestData: () => void; resume: () => void; start: (options?: CustomMediaRecorderOptions) => Promise<MediaRecorder>; stop: () => undefined | Promise<void>; get state(): MediaRecorderState; subscribe(callback: (state: MediaRecorderState) => void): () => boolean;} Parameters
- options: CustomMediaRecorderOptions = {}
Returns {
cleanup: () => void;
clearRecordedData: () => void;
getBlob: (type?: string) => Blob;
isTypeSupported: (type: string) => boolean;
pause: () => void;
requestData: () => void;
resume: () => void;
start: (options?: CustomMediaRecorderOptions) => Promise<MediaRecorder>;
stop: () => undefined | Promise<void>;
get state(): MediaRecorderState;
subscribe(callback: (state: MediaRecorderState) => void): () => boolean;
}