From b4d5d3d688f9266ef119a9d530338444e705d8a0 Mon Sep 17 00:00:00 2001 From: "Bernhard K. Weisshuhn" Date: Sun, 11 Aug 2013 14:49:14 +0200 Subject: [PATCH] save handle to video stream object in cockpit --- plugins/video-stream/public/js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/video-stream/public/js/index.js b/plugins/video-stream/public/js/index.js index c4e3356..b84a348 100644 --- a/plugins/video-stream/public/js/index.js +++ b/plugins/video-stream/public/js/index.js @@ -8,7 +8,10 @@ $('#cockpit').append('
'); // Start the stream - new NodecopterStream(document.getElementById("dronestream"), {port: 3001}); + cockpit.videostream = new NodecopterStream( + document.getElementById("dronestream"), + {port: 3001} + ); }; window.Cockpit.plugins.push(Video);