Microsoft Windows CE 3.0  

Buffering

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Occurs when the Microsoft Windows Media Player control begins or ends buffering.

Compatibility:Windows Media Player

<SCRIPT FOR="MediaPlayer" EVENT="Buffering(
bStart
)" LANGUAGE="JScript">
//insert script commands//
</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 an .asf file (for example, how its images are stored) can initiate event buffering. Buffering also occurs whenever .asf file playback stops and then restarts (either from calls to the Stopand Playmethods, 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

See Also

BufferingCount, Monitoring Stream Status and Network Reception