Sunday, November 1, 2009

[android-developers] MediaPlayer.setDataSource() taking a long time when the screen is off...

i am trying to chase down a really unusual bug.

I have a media player object that is playing streaming url after
streaming url.

for some reason, when the screen is off, calling setDataSource() on
the media player can take a really long time (like 20-40 seconds).

however, when the screen is visible, I never see this issue.

I am wondering what could possibly be causing this call to take so
long... I could envision "prepare" taking a long time, but
setDataSource() ??

Any ideas?

tia.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment