mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
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:
parent
41955913aa
commit
91747fd229
1 changed files with 9 additions and 0 deletions
|
@ -92,6 +92,15 @@ class Scratch3VideoSensingBlocks {
|
||||||
this._loop();
|
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
|
* Dimensions the video stream is analyzed at after its rendered to the
|
||||||
* sample canvas.
|
* sample canvas.
|
||||||
|
|
Loading…
Reference in a new issue