Android LibVLC options do not work

谁都会走 提交于 2019-12-24 12:07:00

问题


I am working with streaming RTSP using LibVLC. I have it working where I can view the stream, but the latency is set to the default ~2seconds.

On the Ubuntu Desktop I can launch vlc with the following options to improve the latency greatly:

$ vlc -vvv rtsp://192.168.2.1:1234 --network-caching=50 --clock-jitter=0 --clock-synchro=0

however, when I add these options to LibVLC, there is no positive effect:

ArrayList<String> options = new ArrayList<>();
options.add("-vvv");
options.add("--network-caching=50");
options.add("--clock-jitter=0");
options.add("--clock-synchro=0");

mLibVLC = new LibVLC(this, options);

Is there something I'm missing?

来源:https://stackoverflow.com/questions/51773268/android-libvlc-options-do-not-work

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