MediaStreamSource.SetBufferedRange(TimeSpan, TimeSpan) Method
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)
The smallest time stamp of a MediaStreamSample buffered by the application.
The largest time stamp of a MediaStreamSample buffered by the application.
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
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 |