Player6.Buffering (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This event occurs when the Windows Media Player control begins or ends buffering.

Syntax

JScript

<SCRIPT FOR="MediaPlayer" 
        EVENT="Buffering(bStart)" 
        LANGUAGE="JScript">
    <!-- insert script commands -->
</SCRIPT>

VBScript

<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_Buffering(bStart)
    <!-- insert script commands -->
End Sub
</SCRIPT>

Parameters

*  bStart*

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

Remarks

This event occurs when data begins or finishes buffering.

The properties of a Windows Media file (for example, how its images are stored) can initiate event buffering. Buffering also occurs whenever Windows Media file playback stops and then restarts (either from calls to the Stop and Play methods, or because the user pressed the stop and start buttons). However, other factors such as network congestion can cause data buffering to occur at almost any time while streamed content is being played.

The following example displays a message when data buffering occurs.

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

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also