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

Function debugVideoCaptureStop

src/engineDebug.js:669–680  ·  view source on GitHub ↗

Stop capturing video and save to disk * @memberof Debug

()

Source from the content-addressed store, hash-verified

667/** Stop capturing video and save to disk
668 * @memberof Debug */
669function debugVideoCaptureStop()
670{
671 ASSERT(debugVideoCaptureIsActive(), 'Not capturing video!');
672
673 // stop recording
674 LOG(`Video capture ended. ${debugVideoCapture.captureTimer.get().toFixed(2)} seconds recorded.`);
675 debugVideoCaptureIcon.style.display = 'none';
676 debugVideoCapture.silentAudioSource?.stop();
677 debugVideoCapture.mediaRecorder?.stop();
678 debugVideoCapture.videoTrack?.stop();
679 debugVideoCapture = undefined;
680}
681
682// update video capture, called automatically by engine
683function debugVideoCaptureUpdate()

Callers 1

debugUpdateFunction · 0.70

Calls 5

getMethod · 0.80
ASSERTFunction · 0.70
LOGFunction · 0.70
stopMethod · 0.45

Tested by

no test coverage detected