Fixed: Workers are terminated instead of re-usedin order to initialize them correctly

feature/#97
Christoph Oberhofer 9 years ago
parent da08ae3eaf
commit ca3e4b673a

@ -5,9 +5,9 @@ module.exports = {
constraints: { constraints: {
width: 640, width: 640,
height: 480, height: 480,
minAspectRatio: 0, // aspectRatio: 640/480, // optional
maxAspectRatio: 100, facingMode: "environment", // or user
facing: "environment" // or user // deviceId: "38745983457387598375983759834"
}, },
area: { area: {
top: "0%", top: "0%",

@ -520,9 +520,9 @@ export default {
halfSample: false halfSample: false
} }
}, config); }, config);
this.init(config, function() { this.init(config, () => {
Events.once("processed", function(result) { Events.once("processed", (result) => {
_stopped = true; this.stop();
resultCallback.call(null, result); resultCallback.call(null, result);
}, true); }, true);
start(); start();

Loading…
Cancel
Save