How to use the macadam.Capture function in macadam

To help you get started, we’ve selected a few macadam examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Streampunk / dynamorse-deprecated / funnel / macadamInlet.js View on Github external
module.exports = function (deviceIndex, displayMode, pixelFormat, stopper) {
  var c = new macadam.Capture(deviceIndex, displayMode, pixelFormat);
  var frameStream = H('frame', c);
  var errorStream = H('error', c);
  c.on('removeListener', function (event, listener) {
    console.log('Stopping macadam capture.');
    if (c.listenType('frame') === 0) c.stop();
  });
  stopper(c.stop.bind(c));
  c.start();
  return H.merge([errorStream, frameStream]);
}

macadam

Async node.js interface to Blackmagic Design capture and playback devices.

Apache-2.0
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis