I have a videoView
that plays a streaming video url via a service of the app.
When starting to play, it takes quite a long time to be prepared and start to play, but for this I show a progress dialog.
However, if the user is using the seek bar to skip to a specific position (say the middle of the video), the video view freezes for quite a while (up to 20 seconds?!), causing ANR (meaning that the user cannot do anything on the media controller, not even go back to the beginning of the video), and then (if I choose to wait) resumes playing from the position that was chosen.
Why does it happen? How can I avoid such a weird behavior? Even if it's buffering, why does it cause ANR ? I have no code since all I do is to play a url, via :
_videoView.setVideoURI(Uri.parse(_videoUrl));
Any ideas?