Skip to content

mjpeg_stream.js not emitting data buffers #59

@erangiar

Description

@erangiar

hello I'm totally new to drone programming and i'm trying to run the examples provided with my bebop 2. so far I've been able to send basic commands(eg : takeoff.js, dance.js) but I'm having a problem in receiving data from the drone. for example when I try to run mjpeg_stream.js it only prompts a empty window but no data. I've successfully installed opencv and ffmpeg packages. when i tested the code i found that following function doesn't trigger.

mjpg.on("data", function(data) {
buf = data; ------->>> (here the data is still null)
});

Is there any pre-configuration to be done in order to receive the stream from the drone? Please someone help me to get this issue solved. thanks in advance.

the versions I'm using
node v6.10.0
npm v3.10.10
firmware v.4.0.5
os - win 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions