views:

35

answers:

1

Hello,

I am currently building an application for Windows Phone 7 which has to play music with the MediaPlayer.

However, I would like to know whether the phone is already playing some music, to ask the user if he want to play also my app's.

How could I get this information?

Thanks.

+3  A: 

Hi Kite,

MediaPlayer.Queue.ActiveSong should do the trick.

MediaPlayer doco here for your reference.

Mick N