libvlc - stop()/release() takes too long on low speed HLS streams

This forum is about all development around libVLC.
aarondib
New Cone
New Cone
Posts: 3
Joined: 11 Jan 2020 10:32

libvlc - stop()/release() takes too long on low speed HLS streams

Postby aarondib » 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:

Code: Select all

vlc / modules / demux / adaptive / http / Downloader.cpp
in method:

Code: Select all

void Downloader::cancel(HTTPChunkBufferedSource *source)
in line:

Code: Select all

vlc_mutex_lock(&lock);
it is called from:

Code: Select all

void HTTPConnectionManager::cancel(AbstractChunkSource *source)
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

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Postby mfkl » 20 Jan 2020 09:41

try a nightly (4+) build
https://mfkl.github.io

aarondib
New Cone
New Cone
Posts: 3
Joined: 11 Jan 2020 10:32

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Postby aarondib » 20 Jan 2020 11:17

Where can I get it?
libvlc 4.0 branch seems to be updated last 2 years ago.
Thanks!

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Postby mfkl » 21 Jan 2020 10:24

https://nightlies.videolan.org/
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 34 guests