How to know if a music is currently playing on Windows Phone 7?
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 informa开发者_如何学运维tion?
Thanks.
MediaPlayer.Queue.ActiveSong should do the trick.
MediaPlayer doco here for your reference.
精彩评论