MediaStreamSource.SetBufferedRange(TimeSpan, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the range of data that the application is currently buffering.
public:
virtual void SetBufferedRange(TimeSpan startOffset, TimeSpan endOffset) = SetBufferedRange;
void SetBufferedRange(TimeSpan const& startOffset, TimeSpan const& endOffset);
public void SetBufferedRange(System.TimeSpan startOffset, System.TimeSpan endOffset);
function setBufferedRange(startOffset, endOffset)
Public Sub SetBufferedRange (startOffset As TimeSpan, endOffset As TimeSpan)
Parameters
The smallest time stamp of a MediaStreamSample buffered by the application.
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