Send motion and camera more often

This commit is contained in:
Kendell R 2020-08-29 18:20:02 -07:00 committed by Thomas Lovén
parent fe39c6d617
commit e8134df7f3

View File

@ -358,7 +358,7 @@ class BrowserMod {
this._motionTimeout = setTimeout(() => { this._motionTimeout = setTimeout(() => {
this._fullyMotion = false; this._fullyMotion = false;
this.update(); this.update();
}, 5000); }, 1000);
this.update(); this.update();
} }
@ -398,7 +398,7 @@ class BrowserMod {
camera: this._canvas.toDataURL('image/png'), camera: this._canvas.toDataURL('image/png'),
}, },
}); });
setTimeout(this.send_cam.bind(this), 5000); setTimeout(this.send_cam.bind(this), 1000);
} }