stop() causes ANR
Posted: 26 Nov 2014 09:34
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.
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.