How can I stream video from UDP source and display

2020-05-07 06:15发布

问题:

I need to stream video coming from my drone through UDP port and use some kind of video player to display on my Android/IOS device.

I've already tried to use LIBVLC player to do it but got some issues.

The problem with the LibVLC is that the receiving packet size is 1416 but LibVLC need to receive 1316

string UDP_VIDEO_URL = "udp://@:11111";
LibVLC _libvlc = new LibVLC();
VideoView0.MediaPlayer.Play(new Media(_libvlc, UDP_VIDEO_URL, FromType.FromLocation));