Share via


MediaStreamSource.BufferTime Property

Definition

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

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

void BufferTime(TimeSpan value);
public System.TimeSpan BufferTime { get; set; }
var timeSpan = mediaStreamSource.bufferTime;
mediaStreamSource.bufferTime = timeSpan;
Public Property BufferTime As TimeSpan

Property Value

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.

Applies to