AxWindowsMediaPlayer的詳細(xì)用法
當(dāng)前位置:點(diǎn)晴教程→知識(shí)管理交流
→『 技術(shù)文檔交流 』
屬性/方法名: 說明: [基本屬性] URL:String; 指定媒體位置,本機(jī)或網(wǎng)絡(luò)地址 uiMode:String; 播放器界面模式,可為Full, Mini, None, Invisible playState:integer; 播放狀態(tài),1=停止,2=暫停,3=播放,6=正在緩沖,9=正在連接,10=準(zhǔn)備就緒 enableContextMenu:Boolean; 啟用/禁用右鍵菜單 fullScreen:boolean; 是否全屏顯示 [controls] wmp.controls //播放器基本控制 controls.play; 播放 controls.pause; 暫停 controls.stop; 停止 controls.currentPosition:double; 當(dāng)前進(jìn)度 controls.currentPositionString:string; 當(dāng)前進(jìn)度,字符串格式。如“00:23” controls.fastForward; 快進(jìn) controls.fastReverse; 快退 controls.next; 下一曲 controls.previous; 上一曲 [settings] wmp.settings //播放器基本設(shè)置 settings.volume:integer; 音量,0-100 settings.autoStart:Boolean; 是否自動(dòng)播放 settings.mute:Boolean; 是否靜音 settings.playCount:integer; 播放次數(shù) [currentMedia] wmp.currentMedia //當(dāng)前媒體屬性 currentMedia.duration:double; 媒體總長度 currentMedia.durationString:string; 媒體總長度,字符串格式。如“03:24” currentMedia.getItemInfo(const string); 獲取當(dāng)前媒體信息"Title"=媒體標(biāo)題,"Author"=藝術(shù)家,"Copyright"=版權(quán)信息,"Description"=媒體內(nèi)容描述,"Duration"=持續(xù)時(shí)間(秒),"FileSize"=文件大小,"FileType"=文件類型,"sourceURL"=原始地址 currentMedia.setItemInfo(const string); 通過屬性名設(shè)置媒體信息 currentMedia.name:string; 同 currentMedia.getItemInfo("Title") [currentPlaylist] wmp.currentPlaylist //當(dāng)前播放列表屬性 currentPlaylist.count:integer; 當(dāng)前播放列表所包含媒體數(shù) currentPlaylist.Item[integer]; 獲取或設(shè)置指定項(xiàng)目媒體信息,其子屬性同wmp.currentMedia AxWindowsMediaPlayer控件的屬性收藏 MediaPlayer1.Play 播放 MediaPlayer1.Stop 停止 MediaPlayer1.Pause 暫停 MediaPlayer1.PlayCount 文件播放次數(shù) MediaPlayer1.AutoRewind 是否循環(huán)播放 MediaPlayer1.Balance 聲道 MediaPlayer1.Volume 音量 MediaPlayer1.Mute 靜音 MediaPlayer1.EnableContextMenu 是否允許在控件上點(diǎn)擊鼠標(biāo)右鍵時(shí)彈出快捷菜單 MediaPlayer1.AnimationAtStart 是否在播放前先播放動(dòng)畫 MediaPlayer1.ShowControls 是否顯示控件工具欄 MediaPlayer1.ShowAudioControls 是否顯示聲音控制按鈕 MediaPlayer1.ShowDisplay 是否顯示數(shù)據(jù)文件的相關(guān)信息 MediaPlayer1.ShowGotoBar 是否顯示Goto欄 MediaPlayer1.ShowPositionControls 是否顯示位置調(diào)節(jié)按鈕 MediaPlayer1.ShowStatusBar 是否顯示狀態(tài)欄 MediaPlayer1.ShowTracker 是否顯示進(jìn)度條 MediaPlayer1.FastForward 快進(jìn) MediaPlayer1.FastReverse 快退 MediaPlayer1.Rate 快進(jìn)/快退速率 MediaPlayer1.AllowChangeDisplaySize 是否允許自由設(shè)置播放圖象大小 MediaPlayer1.DisplaySize 設(shè)置播放圖象大小 1-MpDefaultSize 原始大小 2-MpHalfSize 原始大小的一半 3-MpDoubleSize 原始大小的兩倍 4-MpFullScreen 全屏 5-MpOneSixteenthScreen 屏幕大小的1/16 6-MpOneFourthScreen 屏幕大小的1/4 7-MpOneHalfScreen 屏幕大小的1/2 MediaPlayer1.ClickToPlay 是否允許單擊播放窗口啟動(dòng)Media Player
http://blog.csdn.net/brouse8079/archive/2007/10/17/1829885.aspx
AxWindowsMediaPlayer常用屬性 2008-03-18 21:28
http://hi.baidu.com/spt1985/blog/item/544bcdde42a7015cccbf1a09.html axWindowsMediaPlayer1控件怎么用? 就像QQ一樣,有消息來就有聲音提示。我用axWindowsMediaPlayer1來做聲音播放器。但是我不知道axWindowsMediaPlayer1控件怎么用。哪位大俠能給個(gè)例子。axWindowsMediaPlayer1控件怎么用? AxWindowsMediaPlayer Object (VB and C#) The AxWindowsMediaPlayer object is the root object for the Windows Media Player control. It supports the properties, methods, and events listed in the following tables. The AxWindowsMediaPlayer object supports the following properties.
The AxWindowsMediaPlayer object supports the following events.
Windows Media Player 11 SDK This documentation describes the Microsoft® Windows Media® Player 11 Software Development Kit (SDK). The Windows Media Player SDK is one of the components of the Microsoft Windows SDK. Other media components include the Microsoft Media Foundation SDK, the Microsoft Windows Media Format SDK, and the Microsoft Windows Media Services SDK. The Windows Media Player SDK documents programming technologies that can be used to extend the capabilities of Windows Media Player and Windows Media Player Mobile. These technologies are documented in the following sections:
該文章在 2017/4/12 11:23:39 編輯過 |
相關(guān)文章
正在查詢... |