DJI-Drone-Camera-Streaming
DJI-Drone-Camera-Streaming copied to clipboard
Receive Ack after image sent not working without exception
Hi Raul. I'm searching a solution for sharing drone video and so have a look to your code. For making it working, I've made some modifications:
- server side, I remove face.hpp and videoio.hpp includes
- mobile side, I replace OpenCV by my own version (with arm64-v8a), add MavicPro iframe id.
My Android phone have XXX.XXX.43.186 ip address, My Ubuntu 16.04 host for drone executable have XXX.XXX.43.67 ip address. They are on the network of an another phone' wifi hotspot.
At first, I started mobile application, get drone video, start executing "./drone XXX.XXX.43.186", Ack is sent and state become "Waiting for frame..."
On mobile side, I receive the Ack message and get correct ip address, eg:XXX.XXX.43.67.
So I click on "Screen shot" in order to change surface with a null value in order to receive YUV data.
YUV data are received, transformed in a Mat object, itself cloned and sent.
socketVideoDrone.send(p);
is executed without any exception, but program blocked on 'socketVideoDrone.receive(ackRecebido);
without any exception.
Did you already encountered such an error ? I'm not skilled on video streaming and RTP, could you give me some advices on how to make your code working.
Have you also tried to stream more frame than one frame on 30 frames ? Last question, do you think it's possible to send frame without freezing video return on android phone ?
Thank you. Chris.