Skip to main content
Sep 6, 2011 3:41 PM UTC
Question

Detecting if media player is playing in the background.

Hi,

I was wondering if it is possible to know if the system media player (ie: iPod on ios) is playing.

On iOS I would do something like that:

if ([[MPMusicPlayerController iPodMusicPlayer] playbackState] == MPMusicPlaybackStatePlaying) ...

That could be useful in a game for intance, to let the user play his own music instead of the game music.
I doubt it's possible, but hey it's worth asking.
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Sep 9, 2011 6:43 AM UTC

Currently, You cannot detect any sound being played in background. Although AIR apps do allow mixing i.e. any audio being played before an AIR app launch will continue playing.

-Varun

Translate