MCPcopy
hub / github.com/KilledByAPixel/LittleJS / debugVideoCaptureUpdate

Function debugVideoCaptureUpdate

src/engineDebug.js:683–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

681
682// update video capture, called automatically by engine
683function debugVideoCaptureUpdate()
684{
685 ASSERT(debugVideoCaptureIsActive(), 'Not capturing video!');
686
687 // save the video frame
688 combineCanvases();
689 debugVideoCapture.videoTrack.requestFrame();
690 debugVideoCaptureIcon.textContent = '● REC '
691 + formatTime(debugVideoCapture.captureTimer);
692}
693
694///////////////////////////////////////////////////////////////////////////////
695// debug utility functions

Callers 1

debugRenderPostFunction · 0.70

Calls 4

combineCanvasesFunction · 0.85
formatTimeFunction · 0.85
ASSERTFunction · 0.70

Tested by

no test coverage detected