Fetch the png stream from the client, not directly

Esse commit está contido em:
Laurent Eschenauer
2013-05-25 21:07:16 +02:00
commit f4a73c4bb4
+1 -3
Ver Arquivo
@@ -1,5 +1,3 @@
var arDrone = require('ar-drone');
function video(name, deps) {
var latestImage;
@@ -17,7 +15,7 @@ function video(name, deps) {
});
// Add a handler on images update
arDrone.createPngStream()
deps.client.createPngStream()
.on('error', console.log)
.on('data', function(frame) {
latestImage = frame;