Arquivos
ardrone-webflight/plugins/video-stream/public/js/index.js
T
Bernhard K. Weisshuhn adf65c4e15 pass in jQuery dependency
2013-09-13 15:41:41 +02:00

19 linhas
562 B
JavaScript

(function(window, document, $) {
var Video = function Video(cockpit) {
console.log("Initializing video stream plugin.");
var video = this;
// Add some UI elements
$('#cockpit').append('<div id="dronestream"></div>');
// Start the stream
cockpit.videostream = new NodecopterStream(
document.getElementById("dronestream"),
{port: 3001}
);
};
window.Cockpit.plugins.push(Video);
}(window, document, jQuery));