dji-sdk/Windows-SDK

Video feed over WIFI with Mavic Air

carter-james89 opened this issue · 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){}

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

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

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.