Share via


Player6.ReadyState (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 property retrieves the state of readiness of the Windows Media Player control.

Syntax

MediaPlayer.ReadyState

Possible Values

This property is a read-only Long containing one of the following values.

Value Visual Basic constant Description
0 mpReadyStateUninitialized The FileName property has not been initialized.
1 mpReadyStateLoading Windows Media Player control is asynchronously loading a file.
3 mpReadyStateInteractive 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

Windows Media Player control changes this property at run time, and passes its value as a parameter to the ReadyStateChange event.

The Play method does not work until the value of ReadyState is 3 (mpReadyStateInteractive) or 4 (mpReadyStateComplete).

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also