save handle to video stream object in cockpit

Esse commit está contido em:
Bernhard K. Weisshuhn
2013-08-11 14:49:14 +02:00
commit 0fbc373183
+4 -1
Ver Arquivo
@@ -8,7 +8,10 @@
$('#cockpit').append('<div id="dronestream"></div>'); $('#cockpit').append('<div id="dronestream"></div>');
// Start the stream // Start the stream
new NodecopterStream(document.getElementById("dronestream"), {port: 3001}); cockpit.videostream = new NodecopterStream(
document.getElementById("dronestream"),
{port: 3001}
);
}; };
window.Cockpit.plugins.push(Video); window.Cockpit.plugins.push(Video);