Category : web-mediarecorder

I’m able to produce chunks of data recorded with the MediaRecorder API. Store them and play them with the MediaSource API. This works fine, if I append all chunks in the correct order to a sourceBuffer. async function recordScreen() { recordedChunks = [] stream = await navigator.mediaDevices.getDisplayMedia(getDisplayMediaOptions) mediaRecorder = new MediaRecorder(stream) mediaRecorder.ondataavailable = event => ..

Read more

I have a frontend that’s using the MediaRecorder API to capture a webcam stream and turn it into a webm file. For brevity’s sake, this is where I create the blob and an Object URL: if (recordedChunks.length) { const blob = new Blob(recordedChunks, { type: "video/webm;codecs=h264" }); const url = URL.createObjectURL(blob); I’m attempting to take ..

Read more