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.MediaCollect
ionAttributeStringRemoved =
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=wwwn/video.asf][color=#0000ff]wwwn/video.asf[/color][/url]"
##1 WindowsMediaPlayer.openState = 打开状态
返回播放器的打开状态
##1 WindowsMediaPlay
er.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对象
##wPlaylist = Notuseful
创建一个新的播放列表
##wPlaylist.bstrName = 播放列表名
新的播放列表的名称
##wMedia = 创建媒体对象
创建一个新的媒体对象
##wMedia.bstrURL = 媒体文件
媒体文件名,例如:"c:\1.mp3","[url=wwwn/capsaddam.wmv][color=#0000ff]wwwn/capsaddam.wmv[/color][/url]"
##abled = 可用
返回或设置控件是否可用
##1 WindowsMediaPlayer.fullScreen = 全屏模式
返回或设置控件是否使用全屏幕模式
##ableContextMenu = 菜单可用
返回或设置在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=wwwn/video.wmv][c
olor=#0000ff]wwwn/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 problem
##0 _WMPOCXEvents.EndOfStream = Notuseful
Sent when the end of file is reached
##1 _WMPOCXEvents.PositionChange = 位置被改变
当播放位置被改变的时候触发此事件
##1 _WMPOCXEvents.PositionChange.oldPosition = 旧的位置
##1 _wPosition = 新的位置
##0 _WMPOCXEvents.MarkerHit = Notuseful
Sent when a marker is reached
##0 _WMPOCXEvents.DurationUnitChange = Notuseful
Indicates that the unit used to express duration and position has changed
##1 _WMPOCXEvents.CdromMediaChange = 光驱媒体更改
本事件在CD/DVD光驱在弹出或插入时被触发
##1 _WMPOCXEvents.CdromMediaChange.CdromNum = 光驱序号
光盘驱动器的序号
##0 _WMPOCXEvents.PlaylistChange = Notuseful
Sent when a playlist changes
##0 _WMPOCXEvents.CurrentPlaylistChange = Notuseful
Sent when the current playlist changes
##0 _WMPOCXEvents.CurrentPlaylistItemAvailable = Notuseful
Sent when a current playlist item becomes available
##0 _WMPOCXEvents.MediaChange = Notuseful
Sent when a media object changes
##0 _WMPOCXEvents.CurrentMediaItemAva
ilable = Notuseful
Sent when a current media item becomes available
##0 _WMPOCXEvents.CurrentItemChange = Notuseful
该事件在"WMP控制"对象的"当前项目"被改变的时候被触发
##0 _WMPOCXEvents.MediaCollectionChange = Notuseful
Sent when the media collection needs to be requeried
##0 _WMPOCXEvents.MediaCollectionAttributeStringAdded = Notuseful
Sent when an attribute string is added in the media collection
##0 _WMPOCXEvents.MediaCollectionAttributeStringRemoved = Notuseful
Sent when an attribute string is removed from the media collection
##0 _WMPOCXEvents.MediaCollectionAttributeStringChanged = Notuseful
Sent when an attribute string is changed in the media collection
##0 _WMPOCXEvents.PlaylistCollectionChange = Notuseful
Sent when playlist collection needs to be requeried
##0 _WMPOCXEvents.PlaylistCollectionPlaylistAdded = Notuseful
Sent when a playlist is added to the playlist collection
##0 _WMPOCXEvents.PlaylistCollectionPlaylistRemoved = Notuseful
Sent when a playlist is removed from the playlist collection
##0 _WMPOCXEvents.PlaylistCollectionPlaylistSetAsDeleted = Notuseful
Sent when a playlist has been set or reset as deleted
##0 _WMPOCXEvents.ModeChange = Notuseful
Playlist playback mode has changed
##1 _WMPOCXEvents.MediaError = 媒体发生错误
当媒体对象发生错误的时候触发此事件
##1 _WMPOCXEvents.MediaError.pMediaObject = 媒体对象
发生错误的媒体对象
##0 _WMPOCXEvents.OpenPlaylistSwitch = Notuseful
Current playlist switch with no open state change
##0 _WMPOCXEvents.DomainChange = Notuseful
Send a current domain
##0 _WMPOCXEvents.SwitchedToPlayerApplication = Notuseful
该事件在远程控件切换到完整的播放程序时被触发
server error翻译##0 _WMPOCXEvents.SwitchedToControl = Notuseful
该事件在远程控件切换回控件时被触发
##0 _WMPOCXEvents.PlayerDockedStateChange = Notuseful
Sent when the player docks or undocks
##1 _WMPOCXEvents.PlayerReconnect = 播放器重新连接
当控件重新连接到播放器的时候触发此事件
##1 _WMPOCXEvents.Click = 被单击
当用户单击左键的时候触发此事件
##1 _WMPOCXEvents.Click.nButton = 鼠标按钮
0、#左键;1、右键;2、中键;
##1 _WMPOCXEvents.Click.nShiftState = Shift键状态
0、Shift键被按下;1、Ctrl键被按下;2、Alt键被按下;
##1 _WMPOCXEvents.Click.fX = 横坐标
横坐标
##1 _WMPOCXEvents.Click.fY = 纵坐标
纵坐标
##1 _WMPOCXEvents.DoubleClick = 鼠标双击
当前鼠标双击的时候触发此事件
##1 _WMPOCXEvents.DoubleClick.nButton = 鼠标按键
为以下常量之一:0、#左键; 1、#右键;2、#中键;
##1 _WMPOCXEvents.DoubleClick.nShiftState = Shift键状态
为以下常量之一:0、#Shift键被按下;1、#Ctrl键被按下;2、#Alt键被按下
##1 _WMPOCXEvents.DoubleClick.fX = 横坐标
横坐标
##1 _WMPOCXEvents.DoubleClick.fY = 纵坐标
纵坐

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。