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

Function recordingMessageCountdown

wavyImage.js:495–510  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

493}
494
495function recordingMessageCountdown(duration){
496
497 var secondsLeft = Math.ceil(duration);
498
499 var countdownInterval = setInterval(function(){
500 secondsLeft--;
501 recordingMessageDiv.innerHTML =
502 "Video recording underway. The video will be saved to your downloads folder in <span id=\"secondsLeft\">"+secondsLeft+"</span> seconds.<br><br>This feature can be a bit buggy on Mobile -- if it doesn't work, please try on Desktop instead.";
503
504 if(secondsLeft <= 0){
505 console.log("clear countdown interval");
506 clearInterval(countdownInterval);
507 }
508 },1000);
509
510}
511
512function randomizeInputs(){
513 speedInput.value = Math.ceil(Math.pow(Math.random(),2)*100);

Callers 2

recordVideoMuxerFunction · 0.85
startMobileRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected