americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

ANR on VideoView randomly #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
NOTE: This form is only for reporting bugs found in the GoogleTV system
while developing GoogleTV applications.

Please describe the problem in detail. Be sure to include:
- Steps to reproduce the problem (including sample code if appropriate).
I have an app that regularly calls setUri on a VideoView

- What happened.
Occasionally the setUri call takes so long an ANR occurs

- What you think the correct behavior should be.
ANRs should not occur when calling framework code that necessitates network 
requests

(Details in this thread: 
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/eAAEAEDck
sM, according to Megha: The VideoView.setVideoURI() starts a new thread for 
media playback, but it is the media decoding part which causes extra delay.)

Ideally the decoding would also be done in the background so as not to cause an 
ANR.

Don't forget to mention which version of GoogleTV you're using, and/or
which device the problem appears on (model and version).

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by Heathe...@gmail.com on 26 Nov 2012 at 4:08