Windows Media Player Download
Before to start, you should check the version of Windows Media Player installed on your computer. Version 6.4 is supported, but the latest version is recommended.
|
Embedding Windows Media Player
| To embed an object in HTML document, the object class ID is required. The class ID for Windows Media Player 7, 9, 10 and 11 is clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.Insert the following code into your HTML document to embed Windows Media Player 7 and later: |
<OBJECT id=”VIDEO” width=”320″ height=”240″
style=”position:absolute; left:0;top:0;”
CLASSID=”CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6″
type=”application/x-oleobject”>
<PARAM NAME=”URL” VALUE=”your file or url”>
<PARAM NAME=”SendPlayStateChangeEvents” VALUE=”True”>
<PARAM NAME=”AutoStart” VALUE=”True”>
<PARAM name=”uiMode” value=”none”>
<PARAM name=”PlayCount” value=”9999″>
</OBJECT>
In the URL parameter, you can specify a URL (for streaming) or a local file.
If you are using a Mio generator, you should include the video file in your application. Including video reduce bandwidth usage and bring a better user experience.
Most important parameters supported by Windows Media Player 7 and later:
| Parameter | Default | Description |
|---|
If you want to embed Windows Media Player 6.4 instead of the latest version, the class ID is clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95.
Controlling Windows Media Player from a JavaScript code
| You can control Windows Media Player from scripting.Start playback: |
VIDEO.URL=”filename”;
Stop playback:
VIDEO.controls.stop();
More methods:
VIDEO.controls.Pause();
Properties:
VIDEO.PlayState;
VIDEO.controls.CurrentPosition;
VIDEO.controls.Duration;
For more information:
http://msdn2.microsoft.com/en-us/library/ms983653.aspx


No comments yet
Comments feed for this article