Closed kalaschnik closed 2 years ago
I am not able to get the demo from the README.md to run; is there anything I am doing wrong?
My Code:
import { RecordRTCPromisesHandler, invokeSaveAsDialog } from 'recordrtc'; let stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true, }); let recorder = new RecordRTCPromisesHandler(stream, { type: 'video', }); recorder.startRecording(); const sleep = (m) => new Promise((r) => setTimeout(r, m)); await sleep(3000); recorder.stopRecording(); let blob = await recorder.getBlob(); invokeSaveAsDialog(blob);
The last line is actually causing the error: Uncaught (in promise) Blob object is required.
Uncaught (in promise) Blob object is required.
Nevermind, it is working now; I think there was some bad interplay with my virtual camera coming from OBS
I am not able to get the demo from the README.md to run; is there anything I am doing wrong?
My Code:
The last line is actually causing the error:
Uncaught (in promise) Blob object is required.