页面嵌入Windows Media Player播放器代码需要注意的_网页编辑器

这里是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,有详细的说明和例子。(英文的)

时间: 2024-09-19 20:40:28

页面嵌入Windows Media Player播放器代码需要注意的_网页编辑器的相关文章

filename-在网页中嵌入windows media player播放器的问题

问题描述 在网页中嵌入windows media player播放器的问题 clsid为22D6F312-B0F6-11D0-94AB-0080C74C7E95,FileName属性设置为通过servlet向java后台请求的连接串(http://ip:port/ServletService?actionParames=go),java后台servlet通过ServletOutputStream将视频文件内容写到前台.每次页面调用wmp播放器的时候,servlet总是向后台请求两次,导致后台直接

网页内嵌Windows Media Player播放器的多文件播放方法

网页内嵌Media Player播放器很简单,以下代码即可完成一个简单的播放器 : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <

在C#中,在windows窗体控件中添加了个windows media player 播放器控件,怎样可以选择哪一首旧播放哪一首??

问题描述 在windows窗体中还有个listview控件显示从数据库显示的歌曲名称等信息,在listview控件中显示歌曲列表,并设置了右键快捷播放按钮,怎样可以选择一首歌就播放哪首歌?歌曲从数据库查询得到歌名等信息,添加到listview控件中,在里面显示歌曲列表.然后设置了个右键播放快捷键,选中一首个旧播放它.怎么绑定选择那首歌旧播放哪首歌.privatevoid播放ToolStripMenuItem_Click(objectsender,EventArgse){stringpath=En

Fireworks设计水晶质感的Media Player 播放器图标

  本教程是向大家介绍如何利用Fireworks设计水晶质感的Media Player 播放器图标,设计出来的图标非常精致立体,教程很不错,希望大家通过本篇教程能充分掌握Fireworks软件的使用技巧! 前言: 很多人都说FIREWORKS太弱,远不如PHOTOSHOP制作的效果更好,对于我这个对FW情有独钟的"资深网民"来看,关键是要充分掌握软件的使用技巧,加上好的设计思想,用FIREWORKS同样能做出比较精美的图片.近来看到微软官方网站的Windows Media Player

Window Media Player 播放器

提示:您可以先修改部分代码再运行 Window Media Player 播放器 Play List: All Music 夜曲 - 周杰伦 笔记 - 周笔畅 不得不爱 - 潘玮柏 发如雪 - 周杰伦 Tips: 把歌曲拖入播放列表 提示:您可以先修改部分代码再运行

Win8.1 Media Player播放器打不开的解决方法

  Win8.1系统无法打开Media Player,还出现了"Failed to load control "Windows Media Player"from wmp.dll"的提示,这是什么原因造成的?很可能是因为wmp.dll遭到了破坏,需要对wmp.dll文件进行修复. 方法如下: 1.安装Windows8.1系统的更新补丁,或者从别人正常的电脑拷贝一个进行尝试 2.替换文件后,在"命令提示符"中输入regsvr32 cWindowsS

WMV网页播放器参数中文详解_网页播放器

复制代码 代码如下: <object id="mePlay" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803" standby="Loading Windows Media Pl

网页播放器Object使用详解_网页播放器

一.代码<?XML:NAMESPACE PREFIX = O /> 复制代码 代码如下: <object ID="javademo" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="280" WIDTH="200"> <param name="AUTOSTART" value="0"&

Window Media Player 播放器_网页播放器

比较吃力的地方是drop到播放列表,查MSDN查了n久,还有Window Media Player 6.x插件的play有些奇怪,所以我的代码也有些奇怪........ 拜托各位多测测,有Bug您说话,看我做的也挺不容易的,觉得好的您也多捧捧场. My HTML Player Play List: All Music 夜曲 - 周杰伦 笔记 - 周笔畅 不得不爱 - 潘玮柏 发如雪 - 周杰伦 Tips: 把歌曲拖入播放列表