ReadyStateChange Event

Indicates changes to the control's state of readiness.

Syntax

MediaPlayer_ReadyStateChange( ReadyState )

Parameters

ReadyState

Long value indicating the current state of readiness, after the change occurred.

Remarks

When you change the FileName property, applications should check the control's state of readiness before attempting to call the Play method on the newly opened file. Applications should call the Play method only if the ReadyState parameter equals mpReadyStateInteractive or mpReadyStateComplete.

Settings

Following are possible settings for the ReadyState parameter.

Setting Value Description
mpReadyStateUninitialized 1 The FileName property has not been initialized.
mpReadyStateLoading 0 The ActiveMovie control is asynchronously loading a file.
mpReadyStateInteractive 3 The 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.

© 1996-1998 Microsoft Corporation. All rights reserved.