From 91747fd22933e2042be33315345d59711902336f Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Thu, 5 Apr 2018 17:47:07 -0400 Subject: [PATCH] Add back missing Scratch3VideoSensingBlocks.INTERVAL The INTERVAL time defines how often to analyze a frame. Without the value the test whether a frame should be analyzed will always be false. --- src/extensions/scratch3_video_sensing/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/extensions/scratch3_video_sensing/index.js b/src/extensions/scratch3_video_sensing/index.js index a59daf489..ebd3734a1 100644 --- a/src/extensions/scratch3_video_sensing/index.js +++ b/src/extensions/scratch3_video_sensing/index.js @@ -92,6 +92,15 @@ class Scratch3VideoSensingBlocks { this._loop(); } + /** + * After analyzing a frame the amount of milliseconds until another frame + * is analyzed. + * @type {number} + */ + static get INTERVAL () { + return 33; + } + /** * Dimensions the video stream is analyzed at after its rendered to the * sample canvas.