MediaHistory Class
Windows Phone
March 22, 2012
The MediaHistory class contains information about media items that are newly acquired, recently played, or currently playing.
Namespace:
Microsoft.Devices
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The MediaHistory type exposes the following members.
| Name | Description | |
|---|---|---|
|
NowPlaying | Gets the most recent MediaHistoryItem in the media history, or sets the supplied MediaHistoryItem into the Now Playing section of the Music + Videos Hub. |
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
|
WriteAcquiredItem | Adds a MediaHistoryItem that an application recently acquired for the user. |
|
WriteRecentPlay | Adds a MediaHistoryItem that an application has recently played for the user. |
When new MediaHistoryItem instances are added, the object's metadata is inserted into a list of content that is owned by the Music + Videos Hub. The images provided in the MediaHistoryItem instances are copied into the media library storage area.
For more information about the Music + Videos Hub, see How to: Integrate with the Music and Videos Hub for Windows Phone.