How can I get real-time video stream on Window SDK?

-1

Does anyone knows how can I receive video stream on local PC through Wifi from my Mavic air? I'm using Window SDK on UWP for real-time image processing. And I built a FPV app by reading through a Window SDK tutorial: https://developer.dji.com/windows-sdk/documentation/tutorials/index.html.

From my understanding, the container here for holding the received image from UAV is 'byte[] bytes'.

void OnVideoPush(VideoFeed sender, byte[] bytes)
{
    videoParser.PushVideoData(0, 0, bytes, bytes.Length);

} 

But the error 'The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))' is occurred when I tried to read values inside. How do I get image frames for some image processing?

Thanks!

c#
uwp
dji-sdk
asked on Stack Overflow Oct 29, 2019 by Vinny Zhu • edited Oct 30, 2019 by Vinny Zhu

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0