Commit 24d83e6c authored by amandaghassaei's avatar amandaghassaei

eod

parent 41d13331
......@@ -248,6 +248,7 @@ function initControls(globals){
quality: globals.capturerQuality
});
globals.currentFPS = globals.capturerFPS;
globals.isGif = false;
$("#recordStatus").show();
globals.shouldScaleCanvas = false;
globals.capturer.start();
......@@ -261,6 +262,7 @@ function initControls(globals){
workersPath:'dependencies/'
});
globals.currentFPS = globals.gifFPS;
globals.isGif = true;
$("#recordStatus").show();
globals.shouldScaleCanvas = false;
globals.capturer.start();
......@@ -268,6 +270,7 @@ function initControls(globals){
setLink("#stopRecord", function(){
if (!globals.capturer) return;
if (globals.isGif) globals.warn("Processing GIF, may take a minute...");
globals.capturer.stop();
globals.capturer.save();
globals.capturer = null;
......
......@@ -92,7 +92,8 @@ function initGlobals(){
currentFPS: null,
capturerScale: 1,
capturerFrames: 0,
shouldScaleCanvas: false
shouldScaleCanvas: false,
isGif: false
};
function setCreasePercent(percent){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment