lib/capcon.js
function startCapture(stream, opts, exec) {
  var unhook = hook(stream, opts, exec);
  var str_id = random.generate();

  unhooks[str_id] = unhook;
  stream._id = str_id;

  return true;
}
function startCapture(stream, opts, exec) {
  var unhook = hook(stream, opts, exec);
  var str_id = random.generate();

  unhooks[str_id] = unhook;
  stream._id = str_id;

  return true;
}
Starts a capture on the provided stream using the
provided options and stream execution.

@param stream a stream to listen on.
@param opts to set flags on the capture.
@param exec the function to call with the output.
@returns {boolean}