This directory contains the instructions for viewing the streaming video from a Tello drone in the browser.
- Install
Node.js
- Install
FFmpeg
- Clone this repository
$ git clone https://github.com/johnwalicki/Node-RED-DroneViewer
- Change to the
telloview
directory$ cd Node-RED-DroneViewer/telloview
- Install dependencies
$ npm install
-
Connect computer to Tello drone WiFi
-
In a terminal window, start the server in the
telloview
directory$ npm start
-
Open a browser and go to http://localhost:3000/.
-
Click start stream in the Node-RED Dashboard
You should now see a live feed from Tello drone in the browser window!
telloSDK.js
is a Node.js application which accesses the Tello drone, and sends commands to the Tello.
server.js
is a Node.js/express application which listens for incoming video stream and broadcasts to clients connected via websocket. It triggers the Tello video streaming, captures the video stream, uses FFmpeg to convert the video (to MPEG-TS) and re-streams it to an HTTP endpoint.
embedded.js
is the frontend JS which establishes a websocket connection to the server and uses jsmpeg
to decode the video.