PlayerContext Property
Collapse the table of content
Expand the table of content

MediaHistoryItem.PlayerContext Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Show:
© 2017 Microsoft