hybridgroup/node-bebop

View on GitHub
lib/MediaStreaming.js

Summary

Maintainability
A
1 hr
Test Coverage


"use strict";

var commandToBuffer = require("./commandToBuffer");

var MediaStreaming = module.exports = function(self) {
  this.self = self;
};

MediaStreaming.prototype.videoEnable = function(enable) {

  var buffer = commandToBuffer(1, "MediaStreaming", "VideoEnable", enable);

  this.self._writePacket(this.self._networkFrameGenerator(buffer));
  return this.self;
};