Nghia Nguyen
Nghia Nguyen

Reputation: 2665

get current playing song list windows phone 7

I want to display the list of songs in current playing lists, If users play music in my app, I could 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?

Upvotes: 4

Views: 1394

Answers (3)

Stas  Shusha
Stas Shusha

Reputation: 528

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

Upvotes: 0

toolsche
toolsche

Reputation: 35

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

Upvotes: 0

ColinE
ColinE

Reputation: 70160

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.

Upvotes: 3

Related Questions