[android-developers] Re: AudioManager, requestAudioFocus and video playback...
ping
On Jan 13, 11:12 am, sdphil <phil.pellouch...@gmail.com> wrote:
> Hi,
>
> On Android 2.2.1, I am seeing a behavior I don't understand. I am
> making a call to requestAudioFocus()
>
> mAudioManager.requestAudioFocus(mAudioFocusChangeListener,
> AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);
>
> So that when another media player takes over the audio, I can pause my
> own audio playback. If i use the music player, this works great.
> However, when I try to play a video, I don't get the call in my focus
> change listener. Any ideas on why?
>
> 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home