How can I show the video stream of PX4 drone on my android APP?

Dear all:
I have developed a drone app using o3dr dronekit packages and I can successfully connect to PX4 board. However, I do now know how to show a preview of the PX4 board on my APP.
I used the following API but it simply does not work:
CameraApi.getApi(this.drone).startVideoStream(videoSurface, CameraActions.ACTION_START_VIDEO_STREAM, videoProps, null/*abstractCommandListener*/);
of course I do not assign an value to videoSurface, and videoProps cuz don't know what to assign.
Even before this, do I need to add any widgit view that creates a range for the view to show?

Any replies will be appreciated. 3q


Views: 212

Reply to This

Replies to This Discussion

Check out rhe wifibroadcast project. They are sending raspberry pi images to Android so that should really help you. I also think there is an app called Tower.

Reply to Discussion



Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service