Skip to content

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

@zya

Description

@zya

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');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions