Buffering Event

Occurs when the control begins or ends buffering.

Syntax

MediaPlayer_Buffering( Start )

Parameters

Start

A Boolean value specifying whether data buffering has started or finished. True indicates that the data buffering has started.

Remarks

Buffering is called anytime data begins or finishes buffering.  Buffering can occur at any time, and is influenced by factors such as network congestion.

Data buffering can be initiated by the properties of an .asf file (in how its images are stored, for example). Buffering is initiated anytime .asf file playback is stopped by pressing the Stop button or by calling the Stop method, and then is restarted (by pressing the Play button or calling the Play method). However, due to other factors such as network congestion, data buffering can occur almost anytime during playing of an .asf file.

Example

The following example displays a "buffering..." message when data buffering occurs:

Sub MediaPlayer_Buffering(Start)
  If Start = True Then      'Did buffering just begin?
    TextBox.Text = "Buffering..."
  Else   'Buffering done, clear text box
    TextBox.Text = ""
  End If
End Sub

See Also

BufferingCount

© 1996-1998 Microsoft Corporation. All rights reserved.