hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 61 forks source link

getMjpegStream is undefined #5

Closed timotius02 closed 9 years ago

timotius02 commented 9 years ago

I was doing some testing with node-bebop and opencv when I stumbled upon this. I am currently using v0.2.0.

/Users/timotius02/code/drone/app.js:12
    var mjpg = drone.getMjpegStream();
                     ^
TypeError: undefined is not a function
    at /Users/timotius02/code/drone/app.js:12:22
    at Socket.<anonymous> (/Users/timotius02/code/drone/node_modules/node-bebop/lib/bebop.js:406:7)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:529:20)
zankich commented 9 years ago

@timotius02 the getMjpegStream function only exists in the master branch and has not been released to npm yet. I'll push up a new version soon with the latest changes.

zankich commented 9 years ago

@timotius02 version 0.3.0 has been released to npm and should resolve this issue.