![]() |
Previous | Next |
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).
See Also
Previous | Next |