MediaPlaybackList.MaxPlayedItemsToKeepOpen MediaPlaybackList.MaxPlayedItemsToKeepOpen MediaPlaybackList.MaxPlayedItemsToKeepOpen MediaPlaybackList.MaxPlayedItemsToKeepOpen MediaPlaybackList.MaxPlayedItemsToKeepOpen Property

Definition

Gets or sets a value that specifies the number of MediaPlaybackItem objects that should be kept open after they have been played.

public : IReference<unsigned int> MaxPlayedItemsToKeepOpen { get; set; }
IReference<uint32_t> MaxPlayedItemsToKeepOpen();

void MaxPlayedItemsToKeepOpen(IReference<uint32_t> maxplayeditemstokeepopen);
public Nullable<uint> MaxPlayedItemsToKeepOpen { get; set; }
Public ReadWrite Property MaxPlayedItemsToKeepOpen As Nullable<uint>
var nullable = mediaPlaybackList.maxPlayedItemsToKeepOpen;
mediaPlaybackList.maxPlayedItemsToKeepOpen = nullable;

Property Value

Nullable<uint> Nullable<uint> Nullable<uint>

A value that specifies the number of MediaPlaybackItem objects that should be kept open after they have been played.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Set this value to cause the system to keep the specified number of media playback items open after they have been played so that, if the users navigates backwards through the playback list, the open items can be played immediately without needing to be reopened. The trade off is that the more items that are kept open, the more memory is used by your app, which is especially important to consider with background media playback, where resources are more limited than for a foreground app.