This article says that
MediaPlayerLauncher launches the Media Player application and plays the specified media file. Media files are stored in isolated storage or in the application's installation directory.
However, I want to select songs from a certain album from library (using MediaLibrary
) and launch the default Media player to play it. How to do this ?
Basically you can't do that with the current API.
The MediaPlayerLauncher takes a parameter of type MediaLocationType, and from the documentation we can see that there's no option to access the media library
Use MediaLocationType.Data for media files that are stored in isolated storage. Use MediaLocationType.Install for media files that are part of the application project. They are bundled into the .xap file and stored in the installation directory of the application.
I've created a UserVoice request for this feature. Hopefully we'll get it with the next update if enough people vote for it.