These are chat archives for dronekit/dronekit-android

19th
Oct 2015
jlbilou93
@jlbilou93
Oct 19 2015 08:57
@ne0fhyk Hi ! what video protocol/format should the drone send to Tower? Is there an easy ffmpeg(or other) command to send video to Tower? Thx
Fredia Huya-Kouadio
@ne0fhyk
Oct 19 2015 09:02
@jlbilou93 I'm updating the wiki with a sample. So far I've successfully tested using gstreamer on a ubuntu machine:
jlbilou93
@jlbilou93
Oct 19 2015 09:04
@ne0fhyk Ok thank you, I ll test with gstreamer
Fredia Huya-Kouadio
@ne0fhyk
Oct 19 2015 09:05
gst-launch videotestsrc ! 'video/x-raw, width=1280, height=720, framerate=(fraction)24/1' ! x264enc ! rtph264pay ! udpsink port=<device_port> host=<device_ip>
For that to work, you need the latest beta for 3dr services (v1.4.3 beta 2) as well as the latest beta for Tower (v3.2.1 beta 1)
@jlbilou93 By default, the tower video widget is configured for the solo video stream. The new beta adds a preference to switch it to a custom video stream and specify the udp port to listen on.
Randy Mackay
@rmackay9
Oct 19 2015 10:51
@ne0fhyk, that is really cool!
Fredia Huya-Kouadio
@ne0fhyk
Oct 19 2015 21:55
@rmackay9 thanks! I'll quickly expand on the feature during today's dev call.
molecule
@molecule
Oct 19 2015 22:12
Probably a dumb issue, but I can't seem to get around it. I can't build the Tower app because I don't have the com.o3dr.android:dronekit-android;2.3.+ aar file.
These instructions seem to imply it's simply a matter of adding it to the Gradle file, but I'm still getting build errors: http://android.dronekit.io/first_app.html#adding-the-client-library

Error:A problem occurred configuring project ':Android'.

Could not resolve all dependencies for configuration ':Android:_betaInternalCompile'.
Could not find com.o3dr.android:dronekit-android;2.3.+:.
Searched in the following locations:
https://jcenter.bintray.com/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
https://jcenter.bintray.com/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
https://repo1.maven.org/maven2/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
https://repo1.maven.org/maven2/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
file:/local/mnt/workspace/tower/Tower_staging/Android/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
file:/local/mnt/workspace/tower/Tower_staging/Android/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
https://maven.fabric.io/public/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
https://maven.fabric.io/public/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
file:/local/mnt/workspace/tower/Tower_staging/Android/libs/dronekit-android;2.3.+-.jar
file:/local/mnt/workspace/tower/Tower_staging/Android/libs/dronekit-android;2.3.+.jar
file:/local/mnt/workspace/software/android-sdk-linux/extras/android/m2repository/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
file:/local/mnt/workspace/software/android-sdk-linux/extras/android/m2repository/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
file:/local/mnt/workspace/software/android-sdk-linux/extras/google/m2repository/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.pom
file:/local/mnt/workspace/software/android-sdk-linux/extras/google/m2repository/com/o3dr/android/dronekit-android;2.3.+//dronekit-android;2.3.+-.jar
Required by:
Tower_staging:Android:unspecified

Fredia Huya-Kouadio
@ne0fhyk
Oct 19 2015 22:25
@molecule you have a ; where a : should be :)
@molecule it should be com.o3dr.android:dronekit-android:2.3.+ instead of com.o3dr.android:dronekit-android;2.3.+