3 out of 3 rated this helpful - Rate this topic

MediaHistory Class

Windows Phone

March 22, 2012

The MediaHistory class contains information about media items that are newly acquired, recently played, or currently playing.

System.Object
  Microsoft.Devices.MediaHistory

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public sealed class MediaHistory

The MediaHistory type exposes the following members.

  Name Description
Public property 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.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method WriteAcquiredItem Adds a MediaHistoryItem that an application recently acquired for the user.
Public method WriteRecentPlay Adds a MediaHistoryItem that an application has recently played for the user.
Top
  Name Description
Public field Static member Instance Returns a singleton that represents the MediaHistory class.
Top

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.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)