MediaHistory.WriteRecentPlay Method

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

Adds a MediaHistoryItem that an application has recently played for the user.

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

public void WriteRecentPlay(
	MediaHistoryItem item


Type: Microsoft.Devices.MediaHistoryItem
The MediaHistoryItem that represents the recently played content.

Items added using WriteRecentPlay(MediaHistoryItem) will show up in the History section of the Music + Videos Hub.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft