Thursday, June 17, 2010

[android-developers] Video plays audio after device sleeps (OS 2.1 only)

To replicate:

1. Play any video with audio.
2. Put the device to sleep using the hard key (varies by device).

Audio for the selected video will start playing after a few seconds
while the
device is asleep.

I am calling VideoView.pause() in the onPause() of the activity and
VideoView.stopPlayback() in the onStop() of the activity. This does
not happen prior to the 2.1 SDK from all our testing but in 2.1 it now
appears to happen almost every time. We have tested this on the moto
DROID and the Google NexusOne.

Any ideas would be VERY welcome.

Mark

--
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