开发者

get current playing song list windows phone 7

开发者 https://www.devze.com 2023-03-25 21:28 出处:网络
I want to display the list of songs in current playing lists, If users play music in my app, I 开发者_如何学Ccould know what playlist is playing but if they were playing in zune app then switch to my

I want to display the list of songs in current playing lists, If users play music in my app, I 开发者_如何学Ccould know what playlist is playing but if they were playing in zune app then switch to my app, my song list will be empty, even though the playlists is still running.

For example: if users's playing a playlists in windows phone 7 by Zune app, then they navigate to my App, how do I get that current play lists?


The current Windows Phone 7 APIs only integrate with phone media via the MediaPlayerLauncher, which allows you to launch media from your application.

The Mango (7.1) APIs allow you to integrate with the media + video hub, however, the APIs are still pretty simple. You can determine the currently playing media via MediaHistory.NowPlaying.


MediaHistory.NowPlaying is of Type MediaHistoryItem which has the Properties Title and ImageStream. You could add the Title and Image to your collection.


You can use MediaPlayer.Queue property of static class MediaPlayer from Microsoft.Xna.Framework library

0

精彩评论

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

关注公众号