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)
Syntax
Public ReadOnly Property PlayerContext As IDictionary(Of String, String)
public IDictionary<string, string> PlayerContext { get; }
Property Value
Type: System.Collections.Generic..::.IDictionary<(Of <(String, String>)>)
Returns IDictionary<(Of <(TKey, TValue>)>).
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone