hybridgroup/node-bebop

View on GitHub
examples/video.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";

var bebop = require("../."),
    fs = require("fs");

var output = fs.createWriteStream("./video.h264"),
    drone = bebop.createClient(),
    video = drone.getVideoStream();

video.pipe(output);

drone.connect(function() {
  drone.MediaStreaming.videoEnable(1);
});