AudioManager, requestAudioFocus and video playback...

by sdphil » Fri, 14 Jan 2011 03:12:09 GMT


Sponsored Links
 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.

-- 



Re: AudioManager, requestAudioFocus and video playback...

by sdphil » Sat, 15 Jan 2011 23:39:59 GMT


 ping




-- 


Sponsored Links


Re: AudioManager, requestAudioFocus and video playback...

by sdphil » Thu, 20 Jan 2011 03:02:45 GMT


 ping.  anybody?  anybody?





-- 



Other Threads

1. Is it possible to call methods of a Activity from service.

Hello,

Is it possible to call methods of a Activity from service.

I am running a thread from a service and i listening to some external
event from that thread.
I am not able to call methods  from that thread. Is there any way to
call methods from a thread.

Thank you

--~--~---------~--~----~------------~-------~--~----~

2. Several errors with 1.5 + Linux.

Hi guys, i'm getting these two errors when trying to open a new
project. I already configurated the proper Sun 1.6 java version and
now getting this. Clicking OK i manage to get to the new project main
dialog, but with no targets!

http://yfrog.com/44screenshotyjgp

I'm *this* close to return no Windows, but i resist! :)
--~--~---------~--~----~------------~-------~--~----~

3. Is there a recommended method for app updates?

4. simple demo multiple alarms

5. Why doesn't w.requestFeature(Window.FEATURE_RIGHT_ICON);work?

6. What is the toolchain for S3C2440

7. Where is the bluetooth MAC address saved?