How to embed Windows Media Player in HTML document
| This document describes how to embed Windows Media Player in HTML document to play music or video, and includes the required code in HTML and JavaScript. If you want to distribute your HTML document with your music or video as a stand-alone application, please try MioFactory. Also, take the time to check our Desktop Alert solution. Thank you! |
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: 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:
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: Stop playback: |
本文档介绍如何将WindowsMediaPlayer嵌入HTML文档中播放音乐或视频,并提供了所需的HTML和JavaScript代码。文中还详细列举了控制播放器的各种参数及其默认设置。

3966

被折叠的 条评论
为什么被折叠?



