How can I stream video from UDP source and display on Android/iOS device with C# Xamarin

泄露秘密 提交于 2019-12-02 15:03:50

问题


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));

来源:https://stackoverflow.com/questions/56486597/how-can-i-stream-video-from-udp-source-and-display-on-android-ios-device-with-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!