Share via


MediaStreamSource.SetBufferedRange(TimeSpan, TimeSpan) Method

Definition

Sets the range of data that the application is currently buffering.

public void SetBufferedRange(System.TimeSpan startOffset, System.TimeSpan endOffset);

Parameters

startOffset
TimeSpan

The smallest time stamp of a MediaStreamSample buffered by the application.

endOffset
TimeSpan

The largest time stamp of a MediaStreamSample buffered by the application.

Remarks

Applications that use the network to stream or download the data for MediaStreamSamples should invoke SetBufferedRange to specify what portion of the time-line is currently buffered. If the buffered range extends from 0 to the value of Duration, and Duration is non-zero, the operating system may allow the network hardware to enter a power saving mode.

By default, the buffered range is assumed to be empty when the CanSeek property is false or when the Duration property is 0. If CanSeek is true, the buffered range default is 0 to Duration

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100