MediaStreamSource.SetBufferedRange | setBufferedRange method

Applies to Windows and Windows Phone

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

Syntax


public:
void SetBufferedRange(
  TimeSpan startOffset, 
  TimeSpan endOffset
)

Parameters

startOffset

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

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

endOffset

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.winmd

See also

MediaStreamSource

 

 

Show:
© 2014 Microsoft