Saving Video

This commit is contained in:
Luis Fernando Molina committed 2020-02-10 00:13:54 +01:00
1 parent 7e559abe57
commit d3599dd3f5
6 files changed
+40 -23

No files matched your search

+7 -1
View File
@@ -121,6 +121,13 @@ function newAnimation () {
browserCanvas.height = 1
}
/* Gif Recording */
if (areWeRecording === true) {
console.log('ADDING FRAME')
mediaRecorder.capture(browserCanvas)
}
/* We request the next frame to be drawn, and stablishing a loop */
/* Use this code for full animation speed. */
@@ -148,4 +155,3 @@ function newAnimation () {
browserCanvasContext.fill()
}
}