Share via


Monitoring Stream Status and Network Reception (Windows CE 5.0)

Send Feedback

The Windows Media Player 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 Windows Media Player 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 Windows Media Player control, you would want to use the PlayState property to determine whether the Windows Media Player control was already playing a media file.

The example that follows shows a script that starts the Windows Media Player control only if it is not currently playing a file (for example, PlayState != 2).

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

You could also notify users of any buffering that the Windows Media Player 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 the following:

Supported events include the following:

Network reception properties include the following:

Attributes for monitoring buffering include the following:

See Also

Windows Media Player Control Application Development

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.