node-kinect icon indicating copy to clipboard operation
node-kinect copied to clipboard

Need to call resume() after start() to start the context

Open zya opened this issue 10 years ago • 0 comments

I saw that in the test .resume() is used but this is different than what the docs suggest. If this is expected behaviour, maybe the docs need to reflect that.

var context = require('kinect')();

context.start('video');

context.on('video', function(buf){
  console.log('this will not yet be called');
});
var context = require('kinect')();

context.start('video');
context.resume();

context.on('video', function(buf){
  console.log('this will be called');
});

zya avatar Sep 11 '15 13:09 zya