MediaHistoryItem.PlayerContext Property

July 28, 2014

A set of key/value pairs.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public IDictionary<string, string> PlayerContext { get; }

An application can use PlayerContext to preserve state when a new MediaHistoryItem is added to the History or New sections of the Music + Videos Hub. For example, an application could choose to store how many minutes of a video file have been played. This information can then be retrieved once the application is reactivated by a user tap on the MediaHistoryItem Tile. The combined length of all of the key/value pairs can be a maximum of 200 characters.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft