How to get video stream in nodejs?

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.

Having the same problem. Anyone did this successfully?

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

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

Hi, still not working … what have you fixed ?