Player6.ReadyStateChange (deprecated)
![]() |
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 ready state changes.
Syntax
JScript
<SCRIPT FOR="MediaPlayer"
EVENT="ReadyStateChange(lReadyState)"
LANGUAGE="JScript">
<!-- insert script commands -->
</SCRIPT>
VBScript
<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_ReadyStateChange(lReadyState)
<!-- insert script commands -->
End Sub
</SCRIPT>
Parameters
* lReadyState*
Long value indicating the current value of the ReadyState property, after it changes. It can have one of the following possible values.
| Value | Visual Basic constant | Description |
| 0 | mpReadyStateUninitialized | The FileName property has not been initialized. |
| 1 | mpReadyStateLoading | The Windows Media Player control is asynchronously loading a file. |
| 3 | mpReadyStateInteractive | The Windows Media Player control loaded a file, and downloaded enough data to play the file, but has not yet received all data. |
| 4 | mpReadyStateComplete | All data has been downloaded. |
Remarks
After calling the Open method, applications should check the ready state before attempting to call the Play method on the newly opened file. Applications should call the Play method only if the lReadyState parameter equals 3 (mpReadyStateInteractive) or 4 (mpReadyStateComplete).
Requirements
Version: Windows Media Player version 6.4.
Library: Use msdxm.ocx.
Platform: Windows 98 Second Edition or higher.
.gif)