Saving Video
This commit is contained in:
1 parent
7e559abe57
commit
d3599dd3f5
6 files changed
+40
-23
No files matched your search
+7
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user