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);