Buffering

Description

Indicates data has started or is finished buffering.

Syntax
Private Sub object_Buffering Start

ParameterDescription
Start A Boolean value specifying whether data buffering has started or not. True indicates that the data buffering has started.

Remarks

Buffering is called anytime data begins or finishes buffering. 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.

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


<SCRIPT LANGUAGE="VBScript">
<!--

Sub NSPlay1_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

//-->
</SCRIPT>

See Also

BufferingCount

Return to Player Control Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.