Share via


MediaPlaybackList.MaxPrefetchTime Property

Definition

Gets or sets the maximum prefetch time for MediaPlaybackItem objects in the playback list. The prefetch time is the amount of time before an item is expected to begin playing that the system retrieves the item's media content.

public:
 property IReference<TimeSpan> ^ MaxPrefetchTime { IReference<TimeSpan> ^ get(); void set(IReference<TimeSpan> ^ value); };
IReference<TimeSpan> MaxPrefetchTime();

void MaxPrefetchTime(IReference<TimeSpan> value);
public System.Nullable<System.TimeSpan> MaxPrefetchTime { get; set; }
var iReference = mediaPlaybackList.maxPrefetchTime;
mediaPlaybackList.maxPrefetchTime = iReference;
Public Property MaxPrefetchTime As Nullable(Of TimeSpan)

Property Value

The maximum prefetch time for MediaPlaybackItem objects in the playback list.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Prefetching allows the system to provide a more seamless playback experience because media content is retrieved before it is needed for playback. Setting a smaller maximum prefetch time can reduce bandwidth usage if the user stops playback before an item begins playing.

Applies to