How to get video stream in nodejs?


#1

Hello everybody,
I am using this library - https://github.com/forgeByAcision/node-sumo to control the jumping sudo.
I can control in the main functions but I can’t get any frame from the camera.
I used this example code:

var sumo = require(’…/.’);

var drone = sumo.createClient();
var video = drone.getVideoStream();
var buf = null;

drone.connect(function() {
console.log(“Connected…”);
});

drone.on(“battery”, function(battery) {
console.log("battery: " + battery);
});

video.on(“data”, function(data) {
console.info(“data event called”);
buf = data;
});

But the “data” event never occur.

Can someone help me please.

Thank’s.


#2

Having the same problem. Anyone did this successfully?


#3

Hi,

Make sure you have ffmpeg installed and is on your $PATH. If not you can install it from here https://www.ffmpeg.org/

Regards,
Naman Aggarwal


#4

Hi! I had the same problem. It occurred by node-sumo error.
I fixed it.
Please see https://github.com/taniTk/node-jumping-night and try this.
If you get errors, please inform me.
I hope to help you.

Regards,
taniTk


#5

Hi, still not working … what have you fixed ?