开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜