Last active
June 22, 2017 14:58
-
-
Save przemos/4c9c1ac250b1b315f6e80da570bc5148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<< body of BRFv4_JS_trial.js>> | |
var brfv4 = null; | |
var brfManager = null; | |
function waitForSDK() { | |
if (brfv4 === null) { | |
brfv4 = { | |
locateFile: function () { | |
return "BRFv4_JS_trial.js.mem"; | |
} | |
}; | |
initializeBRF(brfv4); | |
} | |
if (brfv4.sdkReady) { | |
initSDK(); | |
} else { | |
setTimeout(waitForSDK, 100); | |
} | |
} | |
function initSDK() { | |
var resolution = new brfv4.Rectangle(0, 0, 320, 220); | |
brfManager = new brfv4.BRFManager(); | |
brfManager.init(resolution, resolution, "com.tastenkunst.brfv4.js.examples.minimal.webcam"); | |
} | |
waitForSDK(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you point me to some explanation on how to setup a worker?