I want to create a simple audio player for Windows Phone 7.
How can I get a list of songs, artists, albums, genres and method to play item which i selected ? something like is in native wp7 app “Music+Videos”
second problem:
I downloaded “Music + Videos Hub Sample” from Code samples, I execute this project and it play some song, display title and coverart of song BUT…
when I copy this code, add references etc to my project then not display coverart and display title of song, why?
Where i can find more samples of media player for wp7?
You can use the MediaLibrary to access the songs, artists and albums on the user’s device.
For your second problem, did you copy the artwork over as well as the code and references? Some samples, other than the one you’ve downloaded include this and this. The MediaPlayer isn’t a particularly complex class, it has the basic play, stop, pause etc.. methods. The second sample link provides a music manager that demonstrates how to handle certain events (such as a phone call) when using the
MediaPlayer.