MCPcopy Create free account
hub / github.com/collidingScopes/shimmer / finalizeVideo

Function finalizeVideo

wavyImage.js:411–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409
410 //finish and export video after x seconds
411 async function finalizeVideo(){
412 console.log("finalize muxer video");
413 recordVideoState = false;
414 clearInterval(videoRecordInterval);
415 // Forces all pending encodes to complete
416 await videoEncoder.flush();
417 muxer.finalize();
418 let buffer = muxer.target.buffer;
419 finishedBlob = new Blob([buffer]);
420 downloadBlob(new Blob([buffer]));
421
422 //hide user message
423 recordingMessageDiv.classList.add("hidden");
424
425 }
426}
427
428async function renderCanvasToVideoFrameAndEncode({

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
downloadBlobFunction · 0.70
finalizeMethod · 0.45

Tested by

no test coverage detected