This sample shows how to use the MediaHistory and MediaHistoryItem classes to create a Music + Videos Hub app. It also uses the XNA MediaPlayer class to control playback of music. When the user presses the Play button, a history item is added to the Music + Videos Hub. You can then use this history item to launch the app and play that song immediately. If you start the app while a song is already playing in the media player, the app displays information about the song that is currently playing. For more info about integrating your app into the Music + Videos Hub, please see How to: Integrate with the Music and Videos hub for Windows Phone
| Important Note: |
|---|
|
You must install the Windows Phone SDK to run this sample. To get started, go to the Windows Phone Dev Center. |
| Note: |
|---|
|
This sample is packaged as a Windows Phone 7.5 project. It can be converted to a Windows Phone 8 project, by changing the target Windows Phone OS version of the project. To create a Windows Phone 8 project, you must be running the Windows Phone SDK 8.0 on Visual Studio 2012. You can download the latest version of the SDK from http://dev.windowsphone.com/downloadsdk. To convert the sample to a Windows Phone 8 project:
|