libvlc - stop()/release() takes too long on low speed HLS streams
Posted: 20 Jan 2020 09:20
Hi!
I am having too long stuck on libvlc.MediaMplayer.stop() or libvlc.MediaMplayer.release(), when playing HLS streams from low speed or unstable streaming servers.
Time period it takes to return from stop() or release() is from ~2 seconds up-to 3 minutes.
I can see that it stuck in:
in method:
in line:
it is called from:
Used vlc-android versions: 3.1.7, 3.2.2 and latest 3.2.x commits.
I was trying to use options:
--network-caching=100
--http-caching=100
--ipv4-timeout=100
--adaptive-use-access
--no-adaptive-use-access
--preparse-playlist=100
...
Nothing helped
Could someone help me to solve the issue or where should I search.
Regards
I am having too long stuck on libvlc.MediaMplayer.stop() or libvlc.MediaMplayer.release(), when playing HLS streams from low speed or unstable streaming servers.
Time period it takes to return from stop() or release() is from ~2 seconds up-to 3 minutes.
I can see that it stuck in:
Code: Select all
vlc / modules / demux / adaptive / http / Downloader.cpp
Code: Select all
void Downloader::cancel(HTTPChunkBufferedSource *source)
Code: Select all
vlc_mutex_lock(&lock);
Code: Select all
void HTTPConnectionManager::cancel(AbstractChunkSource *source)
I was trying to use options:
--network-caching=100
--http-caching=100
--ipv4-timeout=100
--adaptive-use-access
--no-adaptive-use-access
--preparse-playlist=100
...
Nothing helped
Could someone help me to solve the issue or where should I search.
Regards