Page 1 of 1

stop() during URL connection freezes

Posted: 25 May 2015 10:47
by valentin J
Hi everyone,

I am developping an App based on libVLC to display videos.

The issue I have is that when I try to display some remote content (HTTP, RTSP, etc...) with libVLC.playMRL(), and before the video is displayed, I call libVLC.stop(), this last call take a long long time so that the app freezes, and sometimes an ANR appears. :(

Basically, I launch a "PlayerActivity" to display a video, and if the user leaves it (using the back button), I stop and destroy libVLC using libVLC.stop() and .destroy() methods.

Note that this freeze does not appears when VLC display local content (local video files on the device memory).

I guess libVLC.playMRL() has a timeout when connecting to an URL, and libVLC.stop() wait the end of the connection before doing something. CanĀ“t we "hard kill" this connection?

Thanks in advance.

Re: stop() during URL connection freezes

Posted: 26 May 2015 19:58
by Jean-Baptiste Kempf
We're reworking this part,right now.