頁面嵌入Windows Media Player播放器代碼需要注意的
這里是WMP的版本ClassID,從WMP7后ID就成了clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6,之前的6.4為clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95,但是之前的版本還是可以用的,只不過新功能用不了罷了。
下面這個(gè)是具體的版本號(hào),你可以對(duì)比一下你現(xiàn)在的是什么版本。
版本號(hào) 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 的基礎(chǔ)上對(duì)錯(cuò)誤消息進(jìn)行了較小更新)
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
---------------------------------------------------------------------------------------------------------------
官方的插入方式真夠簡(jiǎn)單的,我都有點(diǎn)想踹他們兩腳,
<OBJECT ID="Player"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM name="autoStart" value="True">
</OBJECT>
下面是具體參數(shù)在不同瀏覽器的可用性,這個(gè)東東真是太有用了,好多參數(shù)用了不起作用,我都測(cè)試的快瘋了,一看這個(gè)列表,原來人家壓根不支持,暈...
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 |
參數(shù)的默認(rèn)值:
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的播放、停止、快進(jìn)吧,看看這里吧,http://msdn.microsoft.com/en-us/library/dd564034%28VS.85%29.aspx,有詳細(xì)的說明和例子。(英文的)
- Android MediaPlayer實(shí)現(xiàn)音樂播放器實(shí)例代碼
- 基于jQuery的網(wǎng)頁影音播放器jPlayer的基本使用教程
- 基于Flowplayer打造一款免費(fèi)的WEB視頻播放器附源碼
- flvplayer.swf flv視頻播放器使用方法
- 超酷的網(wǎng)頁音樂播放器DewPlayer使用方法
- MediaPlayer 在線播放器代碼
- 內(nèi)嵌式RealPlayer播放器的參數(shù)含義
- Window Media Player 播放器
- 網(wǎng)頁播放器的參數(shù)含義 Windows Media Player 網(wǎng)頁播放器 參數(shù)含義
- layer彈出層中H5播放器全屏出錯(cuò)的解決方法
相關(guān)文章
針對(duì)PHP環(huán)境下Fckeditor編輯器上傳圖片配置詳細(xì)教程
今天介紹Fckeditor上傳圖片功能在PHP中的配置方法,涉及Fckeditor上傳圖片的上傳路徑配置、限制Fckeditor上傳圖片大小設(shè)置、Fckeditor上傳圖片文件名重名及亂碼解決方法以及針對(duì)上傳圖片添加水印功能的實(shí)現(xiàn)方法,只要掌握了以上四點(diǎn),F(xiàn)ckeditor在大部分PHP類型網(wǎng)站中的應(yīng)用都能解決2014-04-04fckeditor在ie9中無法彈出對(duì)話框的解決方法(彈出層兼容問題)
升級(jí)到 IE 9后,fckeditor在IE 9里的彈出浮動(dòng)層會(huì)出現(xiàn)bug,里面的內(nèi)容不會(huì)出現(xiàn)2012-04-04當(dāng)使用ckeditor控件時(shí),需要校驗(yàn)輸入內(nèi)容是否為空的一種解決辦法(轉(zhuǎn)帖)
這樣是我們寫程序中最經(jīng)常的寫法 提交之前進(jìn)行驗(yàn)證內(nèi)容是否為空!2011-01-01ASp.net下fckeditor配置圖片上傳最簡(jiǎn)單的方法
fckeditor 的基本配置我就不講了,講講圖片上傳這塊吧;2010-01-01Ewebeditor及fckeditork單引號(hào)問題的解決方法
為什么一個(gè)簡(jiǎn)單的單引號(hào)會(huì)引發(fā)不能添加到數(shù)據(jù)庫呢,想到這里,我們想到了分析下入庫代碼并找出了原因,下面是解決方法。2010-04-04javascript fckeditor編輯器取值與賦值實(shí)現(xiàn)代碼
這篇文章對(duì)于使用fckeditor編輯器的朋友是個(gè)不錯(cuò)應(yīng)用,主要介紹的是js對(duì)fckeditor的取值與賦值操作,fckeditor是個(gè)不錯(cuò)的比較方便的擴(kuò)展功能的編輯器。2010-05-05