Integrated initial version of the dronestream based video plugin

Esse commit está contido em:
Laurent Eschenauer
2013-05-20 12:29:16 +02:00
commit 61338c28ef
4 arquivos alterados com 1241 adições e 0 exclusões
+5
Ver Arquivo
@@ -0,0 +1,5 @@
function video(name, deps) {
require("dronestream").listen(3001);
};
module.exports = video;
+14
Ver Arquivo
@@ -0,0 +1,14 @@
#dronestream {
position: absolute;
z-index: -1;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
overflow: hidden;
}
#dronestream canvas {
width: 100%;
height: 100%;
}
+15
Ver Arquivo
@@ -0,0 +1,15 @@
(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
new NodecopterStream(document.getElementById("dronestream"), {port: 3001});
};
window.Cockpit.plugins.push(Video);
}(window, document));
Diff do arquivo suprimido porque uma ou mais linhas são muito longas