stop() during URL connection freezes

VLC for Android and Chrome OS specific usage questions
valentin J
New Cone
New Cone
Posts: 5
Joined: 04 May 2015 15:38

stop() during URL connection freezes

Postby valentin J » 25 May 2015 10:47

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: stop() during URL connection freezes

Postby Jean-Baptiste Kempf » 26 May 2015 19:58

We're reworking this part,right now.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 26 guests