windows media player Object Model
2009-05-31 17:48
513 查看
Player Object Model
ActiveX uses the concept of objects to contain programming functionality. Windows Media Player uses several objects to divide up the functionality the control provides. The root object is the Player object, and the other objects are attached to the Player object through specific properties.
The following diagram shows how the Windows Media Player 10 ActiveX control object model works:
windows media player 控件的常用属性及方法
ActiveX uses the concept of objects to contain programming functionality. Windows Media Player uses several objects to divide up the functionality the control provides. The root object is the Player object, and the other objects are attached to the Player object through specific properties.
The following diagram shows how the Windows Media Player 10 ActiveX control object model works:
windows media player 控件的常用属性及方法
属性/方法名: | 说明: |
[基本属性] | |
URL:String; | 指定媒体位置,本机或网络地址 |
uiMode:String; | 播放器界面模式,可为Full, Mini, None, Invisible |
playState:integer; | 播放状态,1=停止,2=暂停,3=播放,6=正在缓冲,9=正在连接,10=准备就绪 |
enableContextMenu:Boolean; | 启用/禁用右键菜单 |
fullScreen:boolean; | 是否全屏显示 |
[controls] | wmp.controls //播放器基本控制 |
controls.play; | 播放 |
controls.pause; | 暂停 |
controls.stop; | 停止 |
controls.currentPosition:double; | 当前进度 |
controls.currentPositionString:string; | 当前进度,字符串格式。如“00:23” |
controls.fastForward; | 快进 |
controls.fastReverse; | 快退 |
controls.next; | 下一曲 |
controls.previous; | 上一曲 |
[settings] | wmp.settings //播放器基本设置 |
settings.volume:integer; | 音量,0-100 |
settings.autoStart:Boolean; | 是否自动播放 |
settings.mute:Boolean; | 是否静音 |
settings.playCount:integer; | 播放次数 |
[currentMedia] | wmp.currentMedia //当前媒体属性 |
currentMedia.duration:double; | 媒体总长度 |
currentMedia.durationString:string; | 媒体总长度,字符串格式。如“03:24” |
currentMedia.getItemInfo(const string); | 获取当前媒体信息"Title"=媒体标题,"Author"=艺术家,"Copyright"=版权信息,"Description"=媒体内容描述,"Duration"=持续时间(秒),"FileSize"=文件大小,"FileType"=文件类型,"sourceURL"=原始地址 |
currentMedia.setItemInfo(const string); | 通过属性名设置媒体信息 |
currentMedia.name:string; | 同 currentMedia.getItemInfo("Title") |
[currentPlaylist] | wmp.currentPlaylist //当前播放列表属性 |
currentPlaylist.count:integer; | 当前播放列表所包含媒体数 |
currentPlaylist.Item[integer]; | 获取或设置指定项目媒体信息,其子属性同wmp.currentMedia |
相关文章推荐
- windows media player Object Model
- html中的Object标签(如在jsp页面嵌入windows media player 就用到了)
- 三个Windows Media Player音乐插件
- 如何让windows media player 自动播放视频文件
- WPF 中嵌入Windows Media Player
- Windows Media Player在页面中调用的常用属性和方法
- 调用WindowsMediaPlayer控件播放多个文件【VB .NET】
- Windows Media Player不起作用,修复方法如下
- Windows Media Player控件及url类型异常
- WindowsMediaPlayer的用法
- How to compile VLC media player for Windows
- C# Windows Media Player Controller
- 最终还是放弃了Windows Media Player
- 学习笔记--AxWIndowsMediaPlayer 属性
- Winform Windows Media Player 简易播放器 分类: WinForm 2014-07-31 20:12 589人阅读 评论(0) 收藏
- C#Windows Media Player控件基本及扩展属性
- VC2008 Windows Media Player控件的使用技巧
- 如何在Windows中打开多个Windows Media Player
- Windows Media Player 网页播放器 参数含义
- [音乐天堂]Media Player Object code