FlushBuffers Method

Flushes audio and video buffers, retaining a specified amount of content if possible.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

'Declaration
Public Sub FlushBuffers ( _
	bufferToKeep As TimeSpan, _
	flushAudio As Boolean, _
	flushVideo As Boolean _
)
'Usage
Dim instance As SmoothStreamingMediaElement
Dim bufferToKeep As TimeSpan
Dim flushAudio As Boolean
Dim flushVideo As Boolean

instance.FlushBuffers(bufferToKeep, flushAudio, _
	flushVideo)

Parameters

bufferToKeep
Type: System..::..TimeSpan
An object that specifies how much of a buffer to retain.
flushAudio
Type: System..::..Boolean
true to flush the audio buffer; otherwise, false.
flushVideo
Type: System..::..Boolean
true to flush the video buffer; otherwise, false.

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Show: