mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
792 stars 244 forks source link

Can I accept the udp video streams? #102

Open lugui2009 opened 6 years ago

lugui2009 commented 6 years ago

Hello ,I want to using this sdk,can I accept the udp video streams?Thank you .

JohanJarvi commented 6 years ago

I'm quite certain that it does. I got it working with my RTSP webcam stream working through it the other day and I'm pretty sure that streams over UDP. You can even add an option to stream over TCP.

EDIT: Did some digging, the RTSP stream that I'm reading from my Axis Camera through this Library is definitely reading in through UDP.

If you want to use TCP you have to set that option in your ArrayList that you feed to your own libvlc.

Like such: ArrayList options = new ArrayList(); options.add("--rtsp-tcp"); options.add("-vvv"); // verbosity mLibVLC = new LibVLC(this, options);

Where mLibVLC is defined as: private LibVLC mLibVLC;