Windows-SDK icon indicating copy to clipboard operation
Windows-SDK copied to clipboard

Video feed over WIFI with Mavic Air

Open carter-james89 opened this issue 4 years ago • 3 comments

The sample application will not display the video from my Mavic Air over wifi. Is this supported? I can't get the video feed to display in my own UWP application either following the integration instructions exactly.

Onvideopush recieves a populated byte array but it wont display on my SwapChainPanel.

DJISDKManager.Instance.VideoFeeder.GetPrimaryVideoFeed(0).VideoDataUpdated += OnVideoPush;

Also for some reason this is never called. The converted RGBA frame is what I'm most interested in. Is there some way to get this callback to work?

//Decode data. Do nothing here. This function would return a bytes array with image data in RGBA format. private static void ReceiveDecodedData(byte[] data, int width, int height){}

carter-james89 avatar Apr 02 '20 03:04 carter-james89

Agent comment from William Wong in Zendesk ticket #33281:

Dear Client Thank you for contacting DJI.

Yes, it is supported. It seems that demo has a bug, we already report this issue to the dev team. Sorry for inconvience.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support

dji-dev avatar Apr 03 '20 08:04 dji-dev

I am having the same issue with my Air. Has a fix been released, or is there example code that works?

rwhall1 avatar Jun 11 '20 19:06 rwhall1

I have discovered that if I go to the Playback page and click on the WorkMode button, I can see the camera view on the FPV page. This only works if the WorkMode button turns from red to green, signifying (I think) that the application is talking successfully with the drone.

rwhall1 avatar Jul 02 '20 19:07 rwhall1