libVLC on Android - caching and buffering logic
Posted: 03 May 2017 11:16
Hi all,
I have an Android application which relies on libVLC for video playback.
I built VLC on a Linux machine following the official documentation and using the Java library like the official VLC Android application does.
Everything works fine and smooth but now I wanted to understand how I settings to do some fine tuning.
Videos are streamed over HTTP/HTTPS, but there's no particular or sophisticated service server side: I directly pass the HTTP url while creating the Media instance.
The idea is that for devices or slow connections the player should buffer more at the beginning, to avoid to do that multiple times during the playback.
My questions for you guys VLC experts:
- is it possible to implement this logic tweaking VLC options only?
- how does the caching/buffering work on VLC?
- what does the option "--network-caching" affect? Also, should I set it for both the LibVLC and the Media instances? Looking at the VLC for Android source code it seems so.
- what does the option "--sout-mux-caching" affect?
- Am I missing other important options?
Thank you very much in advance for your help!
Daniele
I have an Android application which relies on libVLC for video playback.
I built VLC on a Linux machine following the official documentation and using the Java library like the official VLC Android application does.
Everything works fine and smooth but now I wanted to understand how I settings to do some fine tuning.
Videos are streamed over HTTP/HTTPS, but there's no particular or sophisticated service server side: I directly pass the HTTP url while creating the Media instance.
The idea is that for devices or slow connections the player should buffer more at the beginning, to avoid to do that multiple times during the playback.
My questions for you guys VLC experts:
- is it possible to implement this logic tweaking VLC options only?
- how does the caching/buffering work on VLC?
- what does the option "--network-caching" affect? Also, should I set it for both the LibVLC and the Media instances? Looking at the VLC for Android source code it seems so.
- what does the option "--sout-mux-caching" affect?
- Am I missing other important options?
Thank you very much in advance for your help!
Daniele