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.
This commit is contained in:
Michael "Z" Goddard 2018-04-05 17:47:07 -04:00
parent 41955913aa
commit 91747fd229
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -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.