Microsoft Windows CE 3.0  

Monitoring Stream Status and Network Reception

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The Microsoft Windows Media Player (WMP) control can provide you with advanced information about the performance of the media playback. Some of this information can be used for proper operation of the WMP control in scripts, while other information allows you to monitor the network reception rates for the media file.

For example, when creating a script to operate the "Play" function of the WMP control, you would want to use the PlayStateproperty to determine whether the WMP control was already playing a media file. The example that follows shows a script that starts the WMP control only if it is not currently playing a file (i.e. PlayState != 2).

<SCRIPT> function onPlay() {
if(MediaPlayer.PlayState!=2) MediaPlayer.Play(); }
</SCRIPT>

You could also notify users of any buffering that the WMP control is doing with the current file, updating the buffering progress on the web page while they are waiting for the playback to begin.

Stream status properties include: