MediaStreamSource.BufferTime | bufferTime property

Applies to Windows and Windows Phone

Gets or sets the amount of data that is buffered by the MediaStreamSource.

Syntax


public:
property TimeSpan BufferTime { 
   TimeSpan get();
   void set (TimeSpan value);
}

Property value

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

The duration of the buffer which corresponds to the number of MediaStreamSamples the MediaStreamSource requests. The default value is 3 seconds.

Remarks

The MediaStreamSource will request a number of MediaStreamSamples in advance. The amount is controlled by the BufferTime property. The default value is 3 seconds.

Requesting MediaStreamSamples in advance helps prevent glitches that would otherwise occur if the application does not deliver MediaStreamSamples on time.

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