Page 1 of 1

stop() causes ANR

Posted: 26 Nov 2014 09:34
by ZartPARZ
Hi,

I am coding a video player using android as backbone to play udp multicast streams. The stream can be played without any problem. However, when I try to stop the stream by calling LibVLC.stop() or AudioServiceController.getInstance().stop() the system freeze and ANR dialog pop-up. This is not always happen, sometime it stop the stream properly but frequently it is not. Is there another way to stop the playing stream? Or is there any condition need to be fullfill before calling stop()?

Thank for your help.

Re: stop() causes ANR

Posted: 03 Dec 2014 05:55
by busybeeCS
indeed, stop() always speeds much time or leads to crash. it is a serous problem.

Re: stop() causes ANR

Posted: 03 Dec 2014 07:09
by ZartPARZ
Thank for your reply.

It's a pain to hear that. I tried to change channel (udp stream) by calling stop then play the new channel. It causes a lot of ANR. Anyone know a way to change the stream without triggering this problem?

Thank you.

Re: stop() causes ANR

Posted: 08 Dec 2014 07:45
by ZartPARZ
I have found a work around to my problem here >> https://mailman.videolan.org/pipermail/ ... 98020.html. It is specific to UDP stream on android.

As the authur and RĂ©mi Denis-Courmont suggest later that this is not a solution to the root of the problem, however, it does solve my problem.

Thank.