C# 调用Windows Media Player的那些事情

Media Player的主要功能也就不说了   

下面是收集的一些属性和方法

Windows Media Player控件的所有属性和方法----1
记录格式说明:
“@@ 语言 = xxxx”:记录当前翻译用语言的种类,必须在首部,请不要更改。
“@@ 类型库 = xxxx”:如果为包装类型库,则记录类型库的相关信息,请不要更改。
“@@ 组件 = xxxx”:如果为包装组件,则记录组件的相关信息,请不要更改,与类型库信息不能同时存在。
“##1”:表示某翻译项的开始,格式为“##1 项目原名 = 翻译后的名称”,
下行首直到下一翻译项标记处记录有关此项目的详细解释信息。
“##0”:记录被屏蔽的项目,被屏蔽项目将不会被包装支持库输出。
格式为“##0 项目原名”,不能屏蔽参数。
------------------------------------------------------------
@@ 语言 = 1
@@ 组件 = {6BF52A52-394A-11d3-B153-00C04F79FAA6},Windows媒体播放器
Windows Media Player控件,需要Windows Media Player 9或以上版本
##0 IWMPEvents = Notuseful
##1 IWMPEvents.OpenStateChange =
Sent when the control changes OpenState
##1 IWMPEvents.PlayStateChange =
Sent when the control changes PlayState
##1 IWMPEvents.AudioLanguageChange =
Sent when the current audio language has changed
##1 IWMPEvents.StatusChange =
Sent when the status string changes
##1 IWMPEvents.ScriptCommand =
Sent when a synchronized command or URL is received
##1 IWMPEvents.NewStream =
Sent when a new stream is started in a channel
##1 IWMPEvents.Disconnect =
Sent when the control is disconnected from the server
##1 IWMPEvents.Buffering =
Sent when the control begins or ends buffering
##1 IWMPEvents.Error =
Sent when the control has an error condition
##1 IWMPEvents.Warning =
Sent when the control encounters a problem
##1 IWMPEvents.EndOfStream =
Sent when the end of file is reached
##1 IWMPEvents.PositionChange =
Indicates that the current position of the movie has changed
##1 IWMPEvents.MarkerHit =
Sent when a marker is reached
##1 IWMPEvents.DurationUnitChange =
Indicates that the unit used to express duration and position has changed
##1 IWMPEvents.CdromMediaChange =
Indicates that the CD ROM media has changed
##1 IWMPEvents.PlaylistChange =
Sent when a playlist changes
##1 IWMPEvents.CurrentPlaylistChange =
Sent when the current playlist changes
##1 IWMPEvents.CurrentPlaylistItemAvailable =
Sent when a current playlist item becomes available
##1 IWMPEvents.MediaChange =
Sent when a media object changes
##1 IWMPEvents.CurrentMediaItemAvailable =
Sent when a current media item becomes available
##1 IWMPEvents.CurrentItemChange =
Sent when the item selection on the current playlist changes
##1 IWMPEvents.MediaCollectionChange =
Sent when the media collection needs to be requeried
##1 IWMPEvents.MediaCollectionAttributeStringAdded =
Sent when an attribute string is added in the media collection
##1 IWMPEvents.MediaCollectionAttributeStringRemoved =
Sent when an attribute string is removed from the media collection
##1 IWMPEvents.MediaCollectionAttributeStringChanged =
Sent when an attribute string is changed in the media collection
##1 IWMPEvents.PlaylistCollectionChange =
Sent when playlist collection needs to be requeried
##1 IWMPEvents.PlaylistCollectionPlaylistAdded =
Sent when a playlist is added to the playlist collection
##1 IWMPEvents.PlaylistCollectionPlaylistRemoved =
Sent when a playlist is removed from the playlist collection
##1 IWMPEvents.PlaylistCollectionPlaylistSetAsDeleted =
Sent when a playlist has been set or reset as deleted
##1 IWMPEvents.ModeChange =
Playlist playback mode has changed
##1 IWMPEvents.MediaError =
Sent when the media object has an error condition
##1 IWMPEvents.OpenPlaylistSwitch =
Current playlist switch with no open state change
##1 IWMPEvents.DomainChange =
Send a current domain
##1 IWMPEvents.SwitchedToPlayerApplication =
Sent when display switches to player application
##1 IWMPEvents.SwitchedToControl =
Sent when display switches to control
##1 IWMPEvents.PlayerDockedStateChange =
Sent when the player docks or undocks
##1 IWMPEvents.PlayerReconnect =
Sent when the OCX reconnects to the player
##1 IWMPEvents.Click =
Occurs when a user clicks the mouse
##1 IWMPEvents.DoubleClick =
Occurs when a user double-clicks the mouse
##1 IWMPEvents.KeyDown =
Occurs when a key is pressed
##1 IWMPEvents.KeyPress =
Occurs when a key is pressed and released
##1 IWMPEvents.KeyUp =
Occurs when a key is released
##1 IWMPEvents.MouseDown =
Occurs when a mouse button is pressed
##1 IWMPEvents.MouseMove =
Occurs when a mouse pointer is moved
##1 IWMPEvents.MouseUp =
Occurs when a mouse button is released
##0 WMPPlaylistChangeEventType = Notuseful
##1 WMPPlaylistChangeEventType.wmplcUnknown =
Unknown
##1 WMPPlaylistChangeEventType.wmplcClear =
Clear
##1 WMPPlaylistChangeEventType.wmplcInfoChange =
InfoChange
##1 WMPPlaylistChangeEventType.wmplcMove =
Move
##1 WMPPlaylistChangeEventType.wmplcDelete =
Delete
##1 WMPPlaylistChangeEventType.wmplcInsert =
Insert
##1 WMPPlaylistChangeEventType.wmplcAppend =
Append
##1 WMPPlaylistChangeEventType.wmplcPrivate =
Private
##1 WMPPlaylistChangeEventType.wmplcNameChange =
NameChange
##1 WMPPlaylistChangeEventType.wmplcMorph =
Morph
##1 WMPPlaylistChangeEventType.wmplcSort =
Sort
##1 WMPPlaylistChangeEventType.wmplcLast =
Last
##1 WindowsMediaPlayer = WMP播放器
Windows媒体播放器控件
##1 WindowsMediaPlayer.close = 关闭
关闭媒体播放器
##1 WindowsMediaPlayer.URL = 地址
返回或设置要播放的媒体文件的文件名或者URL,例如"c:\1.mp3","[url=http://www.cnn.com/video.asf][color=#0000ff]http://www.cnn.com/video.asf[/color][/url]"
##1 WindowsMediaPlayer.openState = 打开状态
返回播放器的打开状态
##1 WindowsMediaPlayer.playState = 播放状态
返回播放器的播放状态,使用"播放状态"枚举常量
##1 WindowsMediaPlayer.Getcontrols = 取控制
获取控制对象
##1 WindowsMediaPlayer.Getsettings = 取设定
获取设定对象
##1 WindowsMediaPlayer.GetcurrentMedia = 取当前媒体
获取当前媒体对象
##0 WindowsMediaPlayer.GetmediaCollection = Notuseful
获取媒体集合对象
##0 WindowsMediaPlayer.GetplaylistCollection = Notuseful
获取播放列表集合对象
##1 WindowsMediaPlayer.versionInfo = 版本信息
返回Windows Media Player的版本信息
##0 WindowsMediaPlayer.launchURL = Notuseful
##1 WindowsMediaPlayer.Getnetwork = 取网络
获取网络对象
##1 WindowsMediaPlayer.GetcurrentPlaylist = 取当前播放列表
获取当前播放列表对象
##1 WindowsMediaPlayer.GetcdromCollection = 取光驱集
获取光驱集合对象
##0 WindowsMediaPlayer.GetclosedCaption = Notuseful
Returns the closed caption handler
##1 WindowsMediaPlayer.isOnline = 在线
返回当前计算机是否连接到了Internet上
##0 WindowsMediaPlayer.GetError = Notuseful
获取错误对象
##1 WindowsMediaPlayer.status = 状态
以文本型方式返回当前播放器的状态
##0 WindowsMediaPlayer.Getdvd = Notuseful
获取DVD对象
##0 WindowsMediaPlayer.newPlaylist = Notuseful
创建一个新的播放列表
##1 WindowsMediaPlayer.newPlaylist.bstrName = 播放列表名
新的播放列表的名称
##1 WindowsMediaPlayer.newMedia = 创建媒体对象
创建一个新的媒体对象
##1 WindowsMediaPlayer.newMedia.bstrURL = 媒体文件
媒体文件名,例如:"c:\1.mp3","[url=http://www.cnn.com/capsaddam.wmv][color=#0000ff]http://www.cnn.com/capsaddam.wmv[/color][/url]"
##1 WindowsMediaPlayer.enabled = 可用
返回或设置控件是否可用
##1 WindowsMediaPlayer.fullScreen = 全屏模式
返回或设置控件是否使用全屏幕模式
##1 WindowsMediaPlayer.enableContextMenu = 菜单可用
返回或设置在Windows Media Player控件界面中是否使用菜单
##1 WindowsMediaPlayer.uiMode = 界面模式
返回或设置控件界面的模式,可以为以下文本型常量之一:"invisible"、#隐藏所有;
"none"、#只显示视频或者音频效果;"mini"、#MINI模式;"full"、#完整模式;"custom"、#自定义效果
##1 WindowsMediaPlayer.stretchToFit = 自适应尺寸
返回或设置视频大小是否适应控件大小
##1 WindowsMediaPlayer.windowlessVideo = 无窗口模式
返回或设置控件播放视频是否在无窗口模式
##1 WindowsMediaPlayer.isRemote = 远程模式
返回播放器是否在远程方式下运行
##0 WindowsMediaPlayer.GetplayerApplication = Notuseful
获取播放程序对象
##1 WindowsMediaPlayer.openPlayer = 打开播放器
使用指定的URL连接来打开Windows Media Player主程序
##1 WindowsMediaPlayer.openPlayer.bstrURL = URL
例如:"c:\1.mp3","[url=http://www.cnn.com/video.wmv][color=#0000ff]http://www.cnn.com/video.wmv[/color][/url]"
##1 WindowsMediaPlayer.SetcurrentMedia = 置当前媒体
设置当前媒体对象
##1 WindowsMediaPlayer.SetcurrentMedia.属性值 = 媒体对象
媒体对象
##1 WindowsMediaPlayer.SetcurrentPlaylist = 置当前播放列表
设置当前播放列表
##1 WindowsMediaPlayer.SetcurrentPlaylist.属性值 = 播放列表
播放列表对象
##1 _WMPOCXEvents.OpenStateChange = 打开状态被改变
当前打开状态被改变的时候触发此事件
##1 _WMPOCXEvents.OpenStateChange.NewState = 新的状态
使用"打开状态"枚举常量
##1 _WMPOCXEvents.PlayStateChange = 播放状态被改变
当播放状态属性被改变的时候触发此事件
##1 _WMPOCXEvents.PlayStateChange.NewState = 新的状态
请参见"播放状态"枚举常量
##1 _WMPOCXEvents.AudioLanguageChange = 音频语言被改变
当音频语言被改变的时候触发此事件
##1 _WMPOCXEvents.AudioLanguageChange.LangID = 语言标识
新的语言的标识(LCID)
##1 _WMPOCXEvents.StatusChange = 状态被改变
当前状态属性被改变的时候触发此事件
##0 _WMPOCXEvents.ScriptCommand = Notuseful
Sent when a synchronized command or URL is received
##0 _WMPOCXEvents.NewStream = Notuseful
Sent when a new stream is started in a channel
##0 _WMPOCXEvents.Disconnect = Notuseful
Sent when the control is disconnected from the server
##1 _WMPOCXEvents.Buffering = 正在缓冲
本时间在Windows Media Player控件缓冲或下载,并且在缓冲开始或结尾部分时触发。
##1 _WMPOCXEvents.Buffering.Start = 是否在开头
如果为 真,正在缓冲开头,反之,为正在缓冲结尾
##1 _WMPOCXEvents.Error = 错误发生
当发生错误的时候触发此事件
##0 _WMPOCXEvents.Warning = Notuseful
Sent when the control encounters a prob

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值