ReadyState Property

Returns a Long value specifying the control's state of readiness.

Syntax

MediaPlayer.ReadyState

Remarks

The player control changes this property at run time, and its value is passed as a parameter to the ReadyStateChange event.

The Play method will only work on the control after the ReadyState property has reached the mpReadyStateInteractive or mpReadyStateComplete state.

Settings

The ReadyState property can have the following values:

Setting Value Description
mpReadyStateUninitialized 0 The FileName property has not been initialized.
mpReadyStateLoading 1 The player control is asynchronously loading a file.
mpReadyStateInteractive 3 The player control loaded a file, and downloaded enough data to play the file, but has not yet received all data.
mpReadyStateComplete 4 All data has been downloaded.

See Also

ReadyStateChange event

© 1996-1998 Microsoft Corporation. All rights reserved.