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