在页面中插入WMP确实是个令人头疼的一件事。

这里是WMP的版本ClassID,从WMP7后ID就成了clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6,之前的6.4为clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95,但是之前的版本还是可以用的,只不过新功能用不了罢了。

下面这个是具体的版本号,你可以对比一下你现在的是什么版本。

版本号              Windows Media Player (WMP) 的版本
----------------------------------------------------------------
5.1.51.421         WMP 5.2 Beta
5.1.52.701         WMP 5.2
6.02.902           WMP 6.0
6.1.5.130          WMP 6.0 Internet Explorer 5 RC0 Beta
6.1.7.217          WMP 6.0
6.2.5.410          WMP 6.2 Beta
6.4.5.809          WMP 6.4
6.4.6.*             WMP 6.4 for Windows 2000 Beta
6.4.7.1028          WMP 6.4,具有多位速率 (MBR) 更新,用于Internet Explorer
6.4.7.1112         WMP 6.4,具有 MBR 更新(在 6.4.7.1028 的基础上对错误消息进行了较小更新)
6.4.9.*              WMP 6.4,仅用于 Windows 2000
7.0.0.1954         WMP 7
7.0.0.1958         WMP 7 更新
7.0.0.1956         WMP 7,更新了安装程序
7.0.0.1440         WMP 7,用于 Windows Millennium Edition (Me)
7.01.00.3055       WMP 7.1
8.00.00.4477       WMP for Windows XP
9.00.00.2980      WMP 9 系列,用于 Windows XP、Windows 98 Second Edition、Windows Me 和 Windows 2000
9.00.00.2991        WMP 9 系列,用于 Windows Server 2003
10.00.00.3646     WMP 10

---------------------------------------------------------------------------------------------------------------

官方的插入方式真够简单的,我都有点想踹他们两脚,

<OBJECT ID="Player"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM name="autoStart" value="True">
</OBJECT>
下面是具体参数在不同浏览器的可用性,这个东东真是太有用了,好多参数用了不起作用,我都测试的快疯了,一看这个列表,原来人家压根不支持,晕...

PARAM name Internet Explorer Firefox with mime type application/x-ms-wmp Firefox with any other mime type
autoStart yes yes yes
balance yes yes yes
baseURL yes yes yes
captioningID yes yes yes
currentMarker yes yes yes
currentPosition yes yes yes
defaultFrame yes no no
enableContextMenu yes yes yes
enabled yes yes yes
enableErrorDialogs yes yes no
fileName no yes yes
fullScreen yes no no
invokeURLs yes no no
mute yes yes yes
playCount yes yes no
rate yes yes yes
SAMIFileName yes yes yes
SAMILang yes yes yes
SAMIStyle yes yes yes
SRC no yes yes
stretchToFit yes yes no
URL yes yes yes
volume yes yes yes
windowlessVideo yes yes yes

参数的默认值:

Parameter Default Description
AudioStream true  
AutoSize true  
AutoStart true Sets if the player should start automatically
AnimationAtStart true Sets if an animation should show while the file loads
AllowScan true  
AllowChangeDisplaySize true  
AutoRewind false  
Balance false  
BaseURL    
BufferingTime 5  
CaptioningID    
ClickToPlay true Sets if the player should start when the user clicks in the play area
CursorType false  
CurrentPosition true  
CurrentMarker false  
DefaultFrame    
DisplayBackColor false  
DisplayForeColor 16777215  
DisplayMode false  
DisplaySize false  
Enabled true  
EnableContextMenu true  
EnablePositionControls true  
EnableFullScreenControls false  
EnableTracker true  
Filename URL The URL of the file to play
InvokeURLs true  
Language true  
Mute false  
PlayCount 1  
PreviewMode false  
Rate 1  
SAMILang    
SAMIStyle    
SAMIFileName    
SelectionStart true  
SelectionEnd true  
SendOpenStateChangeEvents true  
SendWarningEvents true  
SendErrorEvents true  
SendKeyboardEvents false  
SendMouseClickEvents false  
SendMouseMoveEvents false  
SendPlayStateChangeEvents true  
ShowCaptioning false  
ShowControls true Sets if the player controls should show
ShowAudioControls true Sets if the audio controls should show
ShowDisplay false Sets if the display should show
ShowGotoBar false Sets if the GotoBar should show
ShowPositionControls true  
ShowStatusBar false  
ShowTracker true  
TransparantAtStart false  
VideoBorderWidth false  
VideoBorderColor false  
VideoBorder3D false  
Volume -200  
WindowlessVideo false  

可能你最想知道的是怎么用程序(我偏向用JS)来控制WMP的播放、停止、快进吧,看看这里吧,http://msdn.microsoft.com/en-us/library/dd564034%28VS.85%29.aspx,有详细的说明和例子。(英文的)



转载于:https://www.cnblogs.com/worfdream/articles/1954625.html

页面嵌入Windows Media Player需要注意的相关推荐

  1. html加入window播放器,使用 HTML 和 Windows Media Player

    使用 HTML 和 Windows Media Player 05/31/2018 本文内容 概述 使用 HTML 和 Windows Media Player 是将音频和视频与文本和图形组合在一起的 ...

  2. C++ 实现视频文件播放(Windows Media Player、MFC、C#)

    文章目录 1.简介 1.1 WMP控件特点 1.2 WMP开发接口 1.3 WMP开发方式 1.4 WMP支持格式 2.官网代码示例 2.1 Using the Windows Media Playe ...

  3. windows media player html5,Chrome安装Windows Media Player插件的方法

    在Windows下使用Chrome浏览器,如果要播放1ting等网站上面的音乐,就需要安装Windows Media Player插件才行.下面就介绍一 下在Chrome安装Windows Media ...

  4. 网页Windows Media Player播放器参数含义(转)

    常用网页播放器代码 我们在网页上看到的播放器无外乎WMP/RealOne/Macromedia Flash Player,其他的无非是面板不同,或者添加了其他控件,对于计算机上安装的一些播放器也都是编 ...

  5. Windows Media Player 无法播放

    在一个收费网站下载了视频后一播放就提示:Windows Media Player 无法播放.同步或刻录受保护的文件,因为验证相关许可证时发生了错误. 在网上查找了好多相关网页,甚至到了微软的网站查阅都 ...

  6. C#(Winform)程序无法使用Windows Media Player 组件播放视频文件

    如果你的C#(Winform)程序无法使用Windows Media Player 组件播放视频文件(一旦点击播放立马程序闪退,但可以播放音频文件),请按照下面图例设置) 1.桌面右击鼠标找到 独立显 ...

  7. Windows Media Player控件的所有属性和方法

    Windows Media Player控件的所有属性和方法----1 player.GetPlayState() 返回播放器状态(0:停止,1:连接,2:缓冲,3:播放,4:暂停,5:寻找) 网页中 ...

  8. windows server 2008 R2、windows 10、windows server 2012 R2安装windows media player

    **windows server 2008 R2.windows 10.windows server 2012 R2安装windows media player** windows 10: 1.打开控 ...

  9. 用 Windows Media Player 在线匹配歌曲文件的专辑图片,音乐信息等并写入歌曲文件

    如何用 Windows Media Player 在线匹配歌曲文件的专辑图片,音乐信息等并写入歌曲文件 相信大家都遇到过这样一个问题,自己下载的歌曲文件名和歌曲内部的信息(标题.艺术家.唱片集等)杂乱 ...

最新文章

  1. 在CDF可以插入特殊字符编码
  2. 收藏吧!产品再要求实现这个功能,就把这篇转给他!
  3. Swoft 源码剖析 - Swoft 中的注解机制
  4. 0.C++之RAII技术解析
  5. 这几年人工智能和大数据的真实就业规律
  6. VMware配置linux网络步骤
  7. nignx处理Html中SSI技术代码注意事项
  8. SWF反编神器Action Script Viewer终身免费升级!
  9. java中两短行代码合并一行_帮忙啊!!!!找出两个Java文件相似程度超过某一%的代码行。...
  10. windows验证方式
  11. python精彩编程200例-200G的Python初高级教程+项目实战案例源码,让你做有钱途的人才...
  12. 应急响应的基本流程二
  13. geohash java 距离排序_APP筛选附近的人并排序(geohash算法)
  14. Echarts实现“暂无数据”的几种方案
  15. 职场中,什么样的人最容易升职?
  16. 租用游艇,Clear And Present Danger S,Heat Wave G,单源最短路径(弱化版)
  17. CUDA out of memory. Tried to allocate 150.00 MiB (GPU 0; 4.00 GiB total capacity; 2.24 GiB already a
  18. 《AngularJS深度剖析与最佳实践》一2.9 服务
  19. Docker Linux下安装配置及启动
  20. c语言atof函数_atof()函数与C ++中的示例

热门文章

  1. 搜索系统中所有以.repo结尾的文件并删除(find命令详解及xargs命令详解)
  2. 在 Linux 下使用 RAID(九):如何使用 ‘Mdadm’ 工具管理软件 RAID
  3. SQL表操作习题4 14~25题 缺20题
  4. DOS下常用命令大集合
  5. 正则表达式系统教程.CHM
  6. PHP之cookie免登录
  7. android 在指定位置添加布局,Android 如何动态添加 View 并显示在指定位置。
  8. centos php7 无法加载mysqli_Linux下安装PHP7+MySQL
  9. 数据:昨日BTC和ETH期货持仓均减少约三成,波动率创3月以来新高
  10. 加拿大上市矿企Bitfarms完成第二笔1500万美元普通股私人认购