Integrated initial version of the dronestream based video plugin
Esse commit está contido em:
@@ -0,0 +1,5 @@
|
||||
function video(name, deps) {
|
||||
require("dronestream").listen(3001);
|
||||
};
|
||||
|
||||
module.exports = video;
|
||||
@@ -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%;
|
||||
}
|
||||
@@ -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
Referência em uma Nova Issue
Bloquear um usuário