美文网首页
Windows Media Player控件的所有属性和方法

Windows Media Player控件的所有属性和方法

作者: 安易学车 | 来源:发表于2019-08-29 16:37 被阅读0次

    Windows Media Player控件的所有属性和方法----1

    player.GetPlayState() 返回播放器状态(0:停止,1:连接,2:缓冲,3:播放,4:暂停,5:寻找)

    网页中嵌入MediaPlayer时,各种属性与方法设置

    播放: MediaPlayer.Play()

    暂停: MediaPlayer.Pause()

    定位: MediaPlayer.SetCurrentEntry(lWhichEntry)

    MediaPlayer.Next()

    MediaPlayer.Previous()

    循环: MediaPlayer.PlayCount = 0

    0:the clip plays repeatedly

    1:once

    停止: MediaPlayer.Stop()

    ==================================

    AllowChangeDisplaySize 返回或设置最终用户是否能设置显示尺寸(逻辑型)

    AllowScan 返回或设置是否允许扫描(逻辑型)

    AnimationAtStart 返回或设置控件开始播放之前是否先播放一个动画序列(逻辑型)

    AudioStream 返回或设置音频流的编号(用于多音频流的剪辑,默认为-1)(长整型)

    AutoRewind 返回或设置媒体文件播放完毕后是否自动回绕(逻辑型)

    AutoSize 返回或设置是否自动调整控件大小来适应载入的媒体(逻辑型)

    AutoStart 返回或设置在载入媒体文件之后是否自动开始播放(逻辑型)

    Balance 返回或设置指定立体声媒体文件的播放声道(-10000为左声道,10000为右声道,0为立体声)(长整型)

    Bandwidth 返回或设置当前文件的带宽(长整型)

    BaseURL 返回基本的 HTTP URL(字符串)

    BufferingCount 返回媒体文件回放时缓冲的总时间(长整型)

    BufferingProgress 返回缓冲完成的百分比(长整型)

    BufferingTime 返回缓冲的时间(双精度型)

    CanPreview 返回或设置当前显示的剪辑是能否被预览(逻辑型)

    CanScan 返回或设置当前文件是否支持快进或快退(逻辑型)

    CanSeek 返回或设置当前文件是否能搜索并定位到某个时间(逻辑型)

    CanSeekToMarkers 返回或设置文件是否支持搜索到标签(逻辑型)

    CaptioningID 返回在标题中显示的帧或控件的名称(字符串)

    ChannelDescription 返回电台的描述(字符串)

    ChannelName 返回电台的名称(字符串)

    ChannelURL 返回电台的元文件的位置(字符串)

    ClickToPlay 返回或设置是否可以通过点击图像暂停或播放剪辑(逻辑型)

    ClientID 返回客户端唯一的标识符(字符串)

    CodecCount 返回文件使用的可安装的 codecs 的个数(长整型)

    ContactAddress 返回电台的联系地址(字符串)

    ContactEmail 返回电台的联系电子邮件地址(字符串)

    ContactPhone 返回电台的联系电话(字符串)

    CreationDate 返回剪辑的创建日期(日期型)

    CurrentMarker 返回或设置当前书签号码(长整型)

    CurrentPosition 返回或设置剪辑的当前位置(双精度型)

    CursorType 返回或设置指针类型(长整型)

    DefaultFrame 返回或设置控件的默认目标 Http 帧(字符串)

    DisplayBackColor 返回或设置显示面板的背景色(OLE_COLOR 值)

    DisplayForeColor 返回或设置显示面板的前景色(OLE_COLOR 值)

    DisplayMode 返回或设置显示面板是否用秒或帧的形式显示当前位置(MPDisplayModeConstants 值)

    DisplaySize 返回或设置图像显示窗口的大小(MPDisplaySizeConstant 值)

    Duration 返回或设置剪辑剪辑的播放时间(双精度型)

    EnableContextMenu 返回或设置是否允许使用上下文菜单(逻辑型)

    Enabled 返回或设置控件是否可用(逻辑型)

    EnableFullScreenControls 返回或设置全屏幕控制是否可用(逻辑型)

    EnablePositionControls 返回或设置位置控制是否可用(逻辑型)

    EnableTracker 返回或设置搜索栏控制是否可用(逻辑型)

    ErrorCode 返回当前错误代码(长整型)

    ErrorCorrection 返回当前剪辑的错误修正类型(长整型)

    ErrorDescription 返回当前错误的描述(字符串)

    FileName 返回或设置要播放的剪辑的文件名称(字符串)

    HasError 返回控件是否发生错误(逻辑型)

    HasMultipleItems 返回或设置控件是否包含某些多重项目的内容(逻辑型)

    ImageSourceHeight 返回或设置当前剪辑的原始图像高度(长整型)

    ImageSourceWidth 返回或设置当前剪辑的原始图像宽度(长整型)

    InvokeURLs 返回或设置 URL 是否自动发送请求(逻辑型)

    IsBroadcast 返回或设置源是否进行广播(逻辑型)

    IsDurationValid 返回或设置持续时间值是否有效(逻辑型)

    Language 返回或设置用于本地化语言支持的当前区域语言(长整型)

    LostPackets 返回丢失的数据包数量(长整型)

    MarkerCount 返回文件书签的数量(长整型)

    Mute 返回或设置控件是否播放声音(逻辑型)

    OpenState 返回控件的内容源状态(长整型)

    PlayCount 返回或设置一个剪辑播放的次数(长整型)

    PlayState 返回控件的当前操作状态(长整型)

    PreviewMode 返回或设置控件是否处在预览模式(逻辑型)

    Rate 返回或设置回放帧频(双精度型)

    ReadyState 返回控件是否准备就绪(ReadyStateConstant 值)

    ReceivedPackets 返回已接收到的数据包的数量(长整型)

    ReceptionQuality 返回最后 30 秒接收到的数据包的百分比(长整型)

    RecoveredPackets 返回已转换的数据包的数量(长整型)

    SAMIFileName 返回或设置 closed-captioning 文件名(字符串)

    SAMILang 返回或设置 closed captioning 语言(字符串)

    SAMIStyle 返回或设置 closed captioning 风格(字符串)

    SelectionEnd 返回或设置流的结束位置(双精度型)

    SelectionStart 返回或设置流的起始位置(双精度型)

    SendErrorEvents 返回或设置控件是否发送错误事件(逻辑型)

    SendKeyboardEvents 返回或设置控件是否发送键盘事件(逻辑型)

    SendMouseClickEvents 返回或设置控件是否发送鼠标单击事件(逻辑型)

    SendMouseMoveEvents 返回或设置控件是否发送鼠标移动事件(逻辑型)

    SendOpenStateChangeEvents 返回或设置控件是否发送打开状态改变事件(逻辑型)

    SendPlayStateChangeEvents 返回或设置控件是否发送播放状态改变事件(逻辑型)

    SendWarningEvents 返回或设置控件是否发送警告事件(逻辑型)

    ShowAudioControls 返回或设置是否显示音频控制(逻辑型)

    ShowCaptioning 返回或设置是否显示字幕(逻辑型)

    ShowControls 返回或设置控制面板是否可见(逻辑型)

    ShowDisplay 返回或设置是否显示显示面板(逻辑型)

    ShowGotoBar 返回或设置是否显示跳转栏(逻辑型)

    ShowPositionControls 返回或设置是否显示位置控制(逻辑型)

    ShowStatusBar 返回或设置是否显示状态栏(逻辑型)

    ShowTracker 返回或设置是否显示搜索栏(逻辑型)

    SourceLink 返回内容文件的路径(字符串)

    SourceProtocol 返回用于接收数据的协议(长整型)

    StreamCount 返回媒体帧的数量(长整型)

    TransparentAtStart 返回或设置在开始播放之前和停止之后控件是否透明(逻辑型)

    VideoBorder3D 返回或设置视频边框是否显示为 3D 效果(逻辑型)

    VideoBorderColor 返回或设置视频边框的颜色(OLE_颜色)

    VideoBorderWidth 返回或设置视频边框的宽度(长整型)

    Volume 返回或设置音量(长整型)

    ==============================================

    Mediaplayer属性和方法

    属性/方法名:说明:

    [基本属性]

    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

    以下是realplayer:

    <object ID="javademo" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="280" WIDTH="200">

    <param name="AUTOSTART" value="0">

    <param name="SHUFFLE" value="0">

    <param name="PREFETCH" value="0">

    <param name="NOLABELS" value="0">

    <param name="SRC" value="yy.wma">

    <param name="CONTROLS" value="ImageWindow">

    <param name="CONSOLE" value="Clip1">

    <param name="LOOP" value="0">

    <param name="NUMLOOP" value="0">

    <param name="CENTER" value="0">

    <param name="MAINTAINASPECT" value="0">

    <param name="BACKGROUNDCOLOR" value="#000000">

    </object>

    //控制开始

    <input type=button value=play οnclick="javademo.DoPlay()">

    <input type=button value=pause οnclick="javademo.DoPause()">

    <input type=button value=stop οnclick="javademo.DoStop()">

    REAL PLAYER控制

    player.DoPlay() 播放

    player.DoPause() 暂停

    player.DoStop() 停止

    player.GetLength() 返回播放文件的总长度(以毫秒为单位)

    player.GetPosition() 返回播放文件的当前时间位置(以毫秒为单位)

    player.GetPlayState() 返回播放器状态(0:停止,1:连接,2:缓冲,3:播放,4:暂停,5:寻找)

    player.SetPosition(n) 时间位置跳到n的地方(n取值以毫秒为单位)

    player.SetVolume(n) 设置音量(n取值为0到100)

    player.SetMute(s) 静音(s取值为true和false)

    player.SetFullScreen() 全屏

    player.setSource() 设置文件来源

    media player控制

    player.controls.play(); 播放

    player.controls.stop(); 停止

    player.controls.pause(); 暂停

    player.controls.currentPosition 返回播放文件的当前时间位置(以秒为单位)

    player.controls.currentPositionString 时间格式的字符串 "0:32"

    player.currentMedia.duration 返回播放文件的总长度(以秒为单位)

    player.currentMedia.durationString 时间格式的字符串 "4:34"

    player.settings.volume 音量 (0-100)

    player.settings.balance 声道,通过它应该可以进行立体声、左声道、右声道的控制。但对应的取值尚不清楚。

    player.settings.mute = s 静音(s取值为true和false)

    player.closedCaption.CaptioningID 网页中出现字幕的容器的ID

    player.closedCaption.SAMIFileName 字幕文件地址

    player.playState 返回播放器状态( 3:正在播放,2:暂停1:已停止)

    属性

    all

    显示全部功能表

    controlpanel

    显示控制面版

    infovolumepanel

    显示声音面版

    infopanel

    显示信息面版

    statusbar

    显示状态列

    playbutton

    显示开始鈕

    stopbutton

    显示停止鈕

    volumeslider

    显示声音调整按钮

    posititonslider

    显示位置调整按钮

    positionfield

    显示位置区

    statusfield

    显示状态列

    src

    声音來源位置

    autostart

    是否自动播放

    nolabels

    是否显示title、author与coptright等信息

    autogotourl

    是否自动传送url事件

    方法

    aboutbox

    显示about对话框

    canplaypause

    是否可以暂停、重播

    canstop

    是否能停止realaudio

    doplaypause

    设定播放或暂停

    dostop

    停止播放

    donextitem

    播放下一个声音文件

    doprevitem

    播放上一个声音文件

    editpreferences

    开启设定的对话框

    hasnextitem

    检查是否有下一个声音文件

    hasprevitem

    检查是否有上一个声音文件

    hideshowstatistics

    设定开启或关闭连线统计的对话框

    isstatisticsvisible

    检查是否已开启连线统计的对话框

    dogotourl

    载入设定的的realaudio声音文件

    事件

    onclipopened

    开启realaudio声音文件时触发的事件

    onclipclosed

    关闭realaudio声音文件时触发的事件

    onshowstatus

    状态列文字改变时触发的事件

    ongotourl

    播放音效时,遇到url事件时,触发的事件

    默认0为否,-1或1为是)

    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="286" height="225">

    <param name="AudioStream" value="/-1">

    <param name="AutoSize" value="-1">

    <!--是否自动调整播放大小-->

    <param name="AutoStart" value="-1">

    <!--是否自动播放-->

    <param name="AnimationAtStart" value="-1">

    <param name="AllowScan" value="-1">

    <param name="AllowChangeDisplaySize" value="-1">

    <param name="AutoRewind" value="0">

    <param name="Balance" value="0">

    <!--左右声道平衡,最左-9640,最右9640-->

    <param name="BaseURL" value>

    <param name="BufferingTime" value="15">

    <!--缓冲时间-->

    <param name="CaptioningID" value>

    <param name="ClickToPlay" value="-1">

    <param name="CursorType" value="0">

    <param name="CurrentPosition" value="0">

    <!--当前播放进度 -1 表示不变,0表示开头单位是秒,比如10表示从第10秒处开始播放,值必须是-1.0或大于等于0-->

    <param name="CurrentMarker" value="0">

    <param name="DefaultFrame" value>

    <param name="DisplayBackColor" value="0">

    <param name="DisplayForeColor" value="16777215">

    <param name="DisplayMode" value="0">

    <param name="DisplaySize" value="0">

    <!--视频1-50%, 0-100%, 2-200%,3-全屏其它的值作0处理,小数则采用四舍五入然后按前的处理-->

    <param name="Enabled" value="-1">

    <param name="EnableContextMenu" value="-1">

    <!-是否用右键弹出菜单控制-->

    <param name="EnablePositionControls" value="-1">

    <param name="EnableFullScreenControls

    " value="-1">

    <param name="EnableTracker" value="-1">

    <!--是否允许拉动播放进度条到任意地方播放-->

    <param name="Filename" value="01.wma" valuetype="ref">

    <!--播放的文件地址-->

    <param name="InvokeURLs" value="-1">

    <param name="Language" value="-1">

    <param name="Mute" value="0">

    <!--是否静音-->

    <param name="PlayCount" value="10">

    <!--重复播放次数,0为始终重复-->

    <param name="PreviewMode" value="-1">

    <param name="Rate" value="1">

    <!--播放速率控制,1为正常,允许小数-->

    <param name="SAMIStyle" value>

    <!--SAMI样式-->

    <param name="SAMILang" value>

    <!--SAMI语言-->

    <param name="SAMIFilename" value>

    <!--字幕ID-->

    <param name="SelectionStart" value="-1">

    <param name="SelectionEnd" value="-1">

    <param name="SendOpenStateChangeEvents" value="-1">

    <param name="SendWarningEvents" value="-1">

    <param name="SendErrorEvents" value="-1">

    <param name="SendKeyboardEvents" value="0">

    <param name="SendMouseClickEvents" value="0">

    <param name="SendMouseMoveEvents" value="0">

    <param name="SendPlayStateChangeEvents" value="-1">

    <param name="ShowCaptioning" value="0">

    <!--是否显示字幕,为一块黑色,下面会有一大块黑色,一般不显示-->

    <param name="ShowControls" value="-1">

    <!--是否显示控制,比如播放,停止,暂停-->

    <param name="ShowAudioControls" value="-1">

    <!--是否显示音量控制-->

    <param name="ShowDisplay" value="0">

    <!--显示节目信息,比如版权等-->

    <param name="ShowGotoBar" value="0">

    <!--是否启用上下文菜单-->

    <param name="ShowPositionControls" value="-1">

    <!--是否显示往前往后及列表,如果显示一般也都是灰色不可控制-->

    <param name="ShowStatusBar" value="-1">

    <!--当前播放信息,显示是否正在播放,及总播放时间和当前播放到的时间-->

    <param name="ShowTracker" value="-1">

    <!--是否显示当前播放跟踪条,即当前的播放进度条-->

    <param name="TransparentAtStart" value="-1">

    <param name="VideoBorderWidth" value="0">

    <!--显示部的宽部,如果小于视频宽,则最小为视频宽,或者加大到指定值,并自动加大高度.此改变只改变四周的黑框大小,不改变视频大小 -->

    <param name="VideoBorderColor" value="0">

    <!--显示黑色框的颜色, 为RGB值,比如ffff00为黄色-->

    <param name="VideoBorder3D" value="0">

    <param name="Volume" value="0">

    <!--音量大小,负值表示是当前音量的减值,值自动会取绝对值,最大为0,最小为-9640-->

    <param name="WindowlessVideo" value="0">

    <!--如果是0可以允许全屏,否则只能在窗口中查看-->

    </object>

    上面的这个播放器是老式的那种,6.4版本!新式播放器是在MediaPlayer9.0以后出现的,也就是说只有装了9.0或9.0以上的播放器才能正常使用的。

    -------------------------------------------------------------------------------

    下面是新式播放器代码,相对以前的来说要简单很多:

    <object id="player" height="64" width="260" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">

    <param NAME="AutoStart" VALUE="-1">

    <!--是否自动播放-->

    <param NAME="Balance" VALUE="0">

    <!--调整左右声道平衡,同上面旧播放器代码-->

    <param name="enabled" value="-1">

    <!--播放器是否可人为控制-->

    <param NAME="EnableContextMenu" VALUE="-1">

    <!--是否启用上下文菜单-->

    <param NAME="url" VALUE="1.wma">

    <!--播放的文件地址-->

    <param NAME="PlayCount" VALUE="1">

    <!--播放次数控制,为整数-->

    <param name="rate" value="1">

    <!--播放速率控制,1为正常,允许小数,1.0-2.0-->

    <param name="currentPosition" value="0">

    <!--控件设置:当前位置-->

    <param name="currentMarker" value="0">

    <!--控件设置:当前标记-->

    <param name="defaultFrame" value="">

    <!--显示默认框架-->

    <param name="invokeURLs" value="0">

    <!--脚本命令设置:是否调用URL-->

    <param name="baseURL" value="">

    <!--脚本命令设置:被调用的URL-->

    <param name="stretchToFit" value="0">

    <!--是否按比例伸展-->

    <param name="volume" value="50">

    <!--默认声音大小0%-100%,50则为50%-->

    <param name="mute" value="0">

    <!--是否静音-->

    <param name="uiMode" value="mini">

    <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->

    <param name="windowlessVideo" value="0">

    <!--如果是0可以允许全屏,否则只能在窗口中查看-->

    <param name="fullScreen" value="0">

    <!--开始播放是否自动全屏-->

    <param name="enableErrorDialogs" value="-1">

    <!--是否启用错误提示报告-->

    <param name="SAMIStyle" value>

    <!--SAMI样式-->

    <param name="SAMILang" value>

    <!--SAMI语言-->

    <param name="SAMIFilename" value>

    <!--字幕ID-->

    </object>

    记录格式说明:

    “@@ 语言 = 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 problem

    ##0 _WMPOCXEvents.EndOfStream = Notuseful

    Sent when the end of file is reached

    ##1 _WMPOCXEvents.PositionChange = 位置被改变

    当播放位置被改变的时候触发此事件

    ##1 _WMPOCXEvents.PositionChange.oldPosition = 旧的位置

    ##1 _WMPOCXEvents.PositionChange.newPosition = 新的位置

    ##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.CurrentMediaItemAvailable = 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

    该事件在远程控件切换到完整的播放程序时被触发

    ##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 = 纵坐标

    纵坐标

    ##1 _WMPOCXEvents.KeyDown = 按下按键

    当按下键盘上的某键的时候触发此事件

    ##1 _WMPOCXEvents.KeyPress = 键输入

    当键盘上的某键被按下并抬起一次触发此事件

    ##1 _WMPOCXEvents.KeyPress.nKeyAscii = 键码

    对应Ascii码

    ##1 _WMPOCXEvents.KeyUp = 放开按键

    当放开键盘上的某个按键的时候触发此事件

    ##1 _WMPOCXEvents.KeyUp.nKeyCode = 键码

    对应Ascii码

    ##1 _WMPOCXEvents.KeyUp.nShiftState = Shift键状态

    为以下常量之一:0、#Shift键被按下;1、#Ctrl键被按下;2、#Alt键被按下

    ##1 _WMPOCXEvents.MouseDown = 鼠标按键被按下

    当鼠标按键被按下的时候触发此事件

    ##1 _WMPOCXEvents.MouseDown.nButton = 鼠标按键

    为以下常量之一:0、#左键; 1、#右键;2、#中键;

    ##1 _WMPOCXEvents.MouseDown.nShiftState = Shift键状态

    为以下常量之一:0、#Shift键被按下;1、#Ctrl键被按下;2、#Alt键被按下

    ##1 _WMPOCXEvents.MouseDown.fX = 横坐标

    横坐标

    ##1 _WMPOCXEvents.MouseDown.fY = 纵坐标

    纵坐标

    ##1 _WMPOCXEvents.MouseMove = 鼠标移动

    当鼠标移动的时候触发此事件

    ##1 _WMPOCXEvents.MouseMove.nButton = 鼠标按键

    为以下常量之一:0、#左键; 1、#右键;2、#中键;

    ##1 _WMPOCXEvents.MouseMove.nShiftState = Shift键状态

    为以下常量之一:0、#Shift键被按下;1、#Ctrl键被按下;2、#Alt键被按下

    ##1 _WMPOCXEvents.MouseMove.fX = 横坐标

    横坐标

    ##1 _WMPOCXEvents.MouseMove.fY = 纵坐标

    纵坐标

    ##1 _WMPOCXEvents.MouseUp = 鼠标按键被抬起

    当鼠标按键被抬起的时候触发此时间

    ##1 _WMPOCXEvents.MouseUp.nButton = 鼠标按键

    为以下常量之一:0、#左键; 1、#右键;2、#中键;

    ##1 _WMPOCXEvents.MouseUp.nShiftState = Shift键状态

    为以下常量之一:0、#Shift键被按下;1、#Ctrl键被按下;2、#Alt键被按下

    ##1 _WMPOCXEvents.MouseUp.fX = 横坐标

    横坐标

    ##1 _WMPOCXEvents.MouseUp.fY = 纵坐标

    纵坐标

    ##0 IWMPCore2 = Notuseful

    ##1 IWMPCore2.close =

    Closes the media

    ##1 IWMPCore2.URL =

    Returns or sets the URL

    ##1 IWMPCore2.openState =

    Returns the open state of the player

    ##1 IWMPCore2.playState =

    Returns the play state of the player

    ##1 IWMPCore2.Getcontrols =

    Returns the control handler

    ##1 IWMPCore2.Getsettings =

    Returns the settings handler

    ##1 IWMPCore2.GetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPCore2.GetmediaCollection =

    Returns the media collection handler

    ##1 IWMPCore2.GetplaylistCollection =

    Returns the playlist collection handler

    ##1 IWMPCore2.versionInfo =

    Returns the version information for the player

    ##1 IWMPCore2.Getnetwork =

    Returns the network information handler

    ##1 IWMPCore2.GetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 IWMPCore2.GetcdromCollection =

    Get the CDROM drive collection

    ##1 IWMPCore2.GetclosedCaption =

    Returns the closed caption handler

    ##1 IWMPCore2.isOnline =

    Returns whether the machine is online.

    ##1 IWMPCore2.GetError =

    Returns the error object

    ##1 IWMPCore2.status =

    Returns status string

    ##1 IWMPCore2.Getdvd =

    Returns the DVD handler

    ##1 IWMPCore2.SetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPCore2.SetcurrentPlaylist =

    Returns/sets the current playlist

    ##0 IWMPCore = Notuseful

    本对象是Windows Media Player控件的核心部分,使用它可以取得大量常用的Windows Media Player提供的对象

    ##1 IWMPCore.close = 关闭WMP

    关闭Windows Media Player

    ##1 IWMPCore.URL = 媒体位置

    返回或设置媒体对象的位置,例如:"c:\1.mpg","c:\1.mp3"

    ##1 IWMPCore.openState =

    Returns the open state of the player

    ##1 IWMPCore.playState =

    Returns the play state of the player

    ##1 IWMPCore.Getcontrols =

    Returns the control handler

    ##1 IWMPCore.Getsettings =

    Returns the settings handler

    ##1 IWMPCore.GetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPCore.GetmediaCollection =

    Returns the media collection handler

    ##1 IWMPCore.GetplaylistCollection =

    Returns the playlist collection handler

    ##1 IWMPCore.versionInfo = 版本信息

    返回当前Windows Media Player的版本信息

    ##1 IWMPCore.Getnetwork =

    Returns the network information handler

    ##1 IWMPCore.GetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 IWMPCore.GetcdromCollection =

    Get the CDROM drive collection

    ##1 IWMPCore.GetclosedCaption =

    Returns the closed caption handler

    ##1 IWMPCore.isOnline =

    Returns whether the machine is online.

    ##1 IWMPCore.GetError =

    Returns the error object

    ##1 IWMPCore.status =

    Returns status string

    ##1 IWMPCore.SetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPCore.SetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 WMPOpenState = 打开状态

    本对象枚举了Windows Media Player在打开媒体文件时,所有可能的状态

    ##1 WMPOpenState.wmposUndefined = 不确定

    不确定的状态

    ##1 WMPOpenState.wmposPlaylistChanging = 播放列表被改变

    新的播放列表已被加载

    ##1 WMPOpenState.wmposPlaylistLocating = 正在定位播放列表

    正在定位播放列表

    ##1 WMPOpenState.wmposPlaylistConnecting = 正在连接播放列表

    正在连接服务器上的播放列表

    ##1 WMPOpenState.wmposPlaylistLoading = 正在加载播放列表

    正在加载播放列表

    ##1 WMPOpenState.wmposPlaylistOpening = 正在打开播放列表

    正在打开播放列表

    ##1 WMPOpenState.wmposPlaylistOpenNoMedia = 播放列表打开

    播放列表处于打开状态

    ##1 WMPOpenState.wmposPlaylistChanged = 播放列表被改变

    播放列表被改变

    ##1 WMPOpenState.wmposMediaChanging = 媒体被改变

    新的媒体文件已被加载

    ##1 WMPOpenState.wmposMediaLocating = 定位媒体

    正在定位媒体文件

    ##1 WMPOpenState.wmposMediaConnecting = 连接媒体

    正在连接服务器上的媒体文件

    ##1 WMPOpenState.wmposMediaLoading = 加载媒体

    正在加载媒体

    ##1 WMPOpenState.wmposMediaOpening = 正在打开媒体文件

    正在打开媒体文件

    ##1 WMPOpenState.wmposMediaOpen = 媒体被打开

    媒体已被打开

    ##1 WMPOpenState.wmposBeginCodecAcquisition = 开始获取编码器

    开始获取编码器

    ##1 WMPOpenState.wmposEndCodecAcquisition = 结束编码器获取

    结束编码器获取

    ##1 WMPOpenState.wmposBeginLicenseAcquisition = 开始许可证获取

    开始许可证获取

    ##1 WMPOpenState.wmposEndLicenseAcquisition = 结束许可证获取

    结束许可证获取

    ##1 WMPOpenState.wmposBeginIndividualization = 开始个性化设置

    开始个性化设置

    ##1 WMPOpenState.wmposEndIndividualization = 结束个性化设置

    结束个性化设置

    ##1 WMPOpenState.wmposMediaWaiting = 正在等待

    正在等待媒体文件

    ##1 WMPOpenState.wmposOpeningUnknownURL = 打开未知类型的URL

    正在打开一个未知类型的URL

    ##1 WMPPlayState = 播放状态

    本对象枚举了Windows Media Player在播放媒体文件时,所有可能的状态

    ##1 WMPPlayState.wmppsUndefined = 未知状态

    未知状态

    ##1 WMPPlayState.wmppsStopped = 播放暂停

    播放暂停

    ##1 WMPPlayState.wmppsPaused = 播放暂停

    播放暂停

    ##1 WMPPlayState.wmppsPlaying = 正在播放

    正在播放

    ##1 WMPPlayState.wmppsScanForward = 向前搜索

    向前搜索流媒体数据

    ##1 WMPPlayState.wmppsScanReverse = 向后搜索

    向后搜索流媒体数据

    ##1 WMPPlayState.wmppsBuffering = 正在缓冲

    媒体文件正在被缓冲

    ##1 WMPPlayState.wmppsWaiting = 等待加载

    等待加载流媒体

    ##1 WMPPlayState.wmppsMediaEnded = 播放结束

    播放结束

    ##1 WMPPlayState.wmppsTransitioning = 准备新媒体

    准备新的媒体文件

    ##1 WMPPlayState.wmppsReady = 播放准备就绪

    播放准备就绪

    ##1 WMPPlayState.wmppsReconnecting = 尝试重新连接

    尝试重新连接流媒体数据

    ##1 WMPPlayState.wmppsLast = 上一次状态

    状态没有改变

    ##1 IWMPControls = WMP控制

    本对象提供了控制媒体播放的各种方法,例如:播放、暂停......

    ##0 IWMPControls.GetisAvailable = Notuseful

    Returns whether or not the specified media functionality is available

    ##1 IWMPControls.play = 播放

    播放当前媒体项目

    ##1 IWMPControls.stop = 停止

    停止播放

    ##1 IWMPControls.pause = 暂停

    暂停当前正在播放的内容

    ##1 IWMPControls.fastForward = 快进

    快进

    ##1 IWMPControls.fastReverse = 快退

    快退

    ##1 IWMPControls.currentPosition = 当前位置

    返回或者设置从开始处到当前播放位置的长度,以秒为单位。

    ##1 IWMPControls.currentPositionString = 当前位置文本

    返回当前播放位置的文本表达。

    ##1 IWMPControls.next = 下一个

    将当前播放项目设为播放列表(PlayList)中的下一个项目

    ##1 IWMPControls.previous = 前一个

    与"下一个"命令作用正好相反

    ##1 IWMPControls.GetcurrentItem = 取当前项目

    获取当前媒体对象

    ##0 IWMPControls.currentMarker = Notuseful

    设置或返回当前标记号

    ##1 IWMPControls.playItem = 播放项目

    开始播放指定的媒体项目

    ##1 IWMPControls.playItem.pIWMPMedia = 媒体项目

    要播放的媒体项目("WMP媒体"对象)

    ##1 IWMPControls.SetcurrentItem = 置当前媒体

    设置当前媒体对象

    ##1 IWMPControls.SetcurrentItem.属性值 = 媒体对象

    要设置的"WMP媒体"对象

    ##1 IWMPMedia = WMP媒体

    本对象提供返回或设置一个多媒体剪辑的属性

    ##1 IWMPMedia.GetisIdentical = 判断相等

    判断参数所提供的媒体对象和本媒体对象是否是同样的

    ##1 IWMPMedia.GetisIdentical.pIWMPMedia = 媒体对象

    要判断的媒体对象("WMP媒体"对象)

    ##1 IWMPMedia.sourceURL = 源连接

    返回本媒体对象的原始URL连接

    ##1 IWMPMedia.name = 媒体名称

    返回媒体的名称

    ##1 IWMPMedia.imageSourceWidth = 源图像宽度

    返回图像的原始宽度,以象素为单位

    ##1 IWMPMedia.imageSourceHeight = 源图像高度

    返回图像的原始高度,以象素为单位

    ##1 IWMPMedia.markerCount = 标记数量

    返回文件中标记的数量

    ##1 IWMPMedia.getMarkerTime = 取标记时间

    通过序号获取标记时间

    ##1 IWMPMedia.getMarkerTime.MarkerNum = 序号

    标记序号

    ##1 IWMPMedia.getMarkerName = 取标记名

    通过标记序号获取标记名

    ##1 IWMPMedia.getMarkerName.MarkerNum = 序号

    标记序号

    ##1 IWMPMedia.duration = 播放位置

    以秒为单位返回或设置播放的位置

    ##1 IWMPMedia.durationString = 播放位置文本

    返回以文本方式表达的当前的播放位置,"HH:MM:SS"格式

    ##1 IWMPMedia.attributeCount = 属性的数量

    返回本媒体的属性的数量

    ##1 IWMPMedia.getAttributeName = 取属性名

    通过属性序号取得属性的名称,注意:属性序号必须在0 ~ 属性数量-1 的范围内

    ##1 IWMPMedia.getItemInfo = 取项目信息

    通过项目名获取项目信息

    tendollor 发表于 2008-11-25 19:58

    Windows Media Player控件的所有属性和方法----2

    ##1 IWMPMedia.getItemInfo.bstrItemName = 项目名

    项目名,可为下列文本型常量之一(更多项目名,请参见Windows Media Player 9 SDK 文档中的"Available Attributes"部分):

    "Author"、#本媒体剪辑的作者;"Bitrate"、#位比率(秒为单位);"Copyright"、#版权信息;"CurrenBitrate"、#当前位比率(秒为单位);"Description"、#媒体内容的描述;"Duration"、#持续时间(秒为单位);"FileSize"、#文件大小(Bytes为单位);

    "FileType"、#文件格式,例如wma,mp3;"SourceURL"、#原始地址;"Title"、#媒体内容的标题"; ##1 IWMPMedia.setItemInfo = 置项目信息

    通过属性名设置项目信息

    ##1 IWMPMedia.setItemInfo.bstrItemName = 项目名

    项目的名称

    ##1 IWMPMedia.setItemInfo.bstrVal = 值

    要设置的值

    ##1 IWMPMedia.getItemInfoByAtom = 按序取项目信息

    按照序号获取项目信息

    ##0 IWMPMedia.isMemberOf = Notuseful

    Is the media a member of the given playlist

    ##0 IWMPMedia.isReadOnlyItem = Notuseful

    Is the attribute read only

    ##1 IWMPPlaylist = WMP播放列表

    本对象提供方法操作媒体剪辑列表

    ##1 IWMPPlaylist.count = 项目数量

    返回播放列表中项目的数量

    ##1 IWMPPlaylist.name = 名称

    返回播放列表名

    ##1 IWMPPlaylist.attributeCount = 属性数量

    返回播放列表中关联属性的数量

    ##1 IWMPPlaylist.GetattributeName = 取属性名

    通过序号获取属性名

    ##1 IWMPPlaylist.GetattributeName.lIndex = 序号

    属性的序号

    ##1 IWMPPlaylist.GetItem = 取媒体

    通过序号返回对应的媒体对象("WMP媒体"对象)

    ##1 IWMPPlaylist.GetItem.lIndex = 序号

    项目序号

    ##1 IWMPPlaylist.getItemInfo = 取项目信息

    通过项目名取得项目信息

    ##1 IWMPPlaylist.getItemInfo.bstrName = 项目名

    项目名

    ##1 IWMPPlaylist.setItemInfo = 置项目信息

    设置播放列表的项目信息

    ##1 IWMPPlaylist.setItemInfo.bstrName = 项目名

    项目名

    ##1 IWMPPlaylist.setItemInfo.bstrValue = 值

    要设置的值

    ##0 IWMPPlaylist.GetisIdentical = Notuseful

    Determines if the supplied object is the same as the this one

    ##1 IWMPPlaylist.clear = 清空列表

    清空播放列表中的全部内容

    ##1 IWMPPlaylist.insertItem = 插入项目

    在播放列表中指定位置插入新的项目

    ##1 IWMPPlaylist.insertItem.lIndex = 序号

    插入的序号

    ##1 IWMPPlaylist.insertItem.pIWMPMedia = 媒体对象

    要插入的媒体对象("WMP媒体"对象)

    ##1 IWMPPlaylist.appendItem = 追加

    向播放列表尾部追加项目

    ##1 IWMPPlaylist.appendItem.pIWMPMedia = 媒体对象

    要追加的媒体对象("WMP媒体"对象)

    ##1 IWMPPlaylist.removeItem = 移除

    通过媒体对象移除播放列表中的指定项目

    ##1 IWMPPlaylist.removeItem.pIWMPMedia = 媒体对象

    要移除的媒体对象("WMP媒体"对象)

    ##1 IWMPPlaylist.moveItem = 移动

    移动项目的位置

    ##1 IWMPPlaylist.moveItem.lIndexOld = 旧序号

    原始序号

    ##1 IWMPPlaylist.moveItem.lIndexNew = 新序号

    新的序号

    ##1 IWMPSettings = WMP设定

    本对象提供了可以改变Windows Media Player多个设定的方法

    ##0 IWMPSettings.GetisAvailable = Notuseful

    Returns whether or not the specified media functionality is available

    ##1 IWMPSettings.autoStart = 自动播放

    返回或设置媒体文件是否自动播放

    ##0 IWMPSettings.baseURL = Nutuseful

    Returns the base URL used for relative path resolution

    ##0 IWMPSettings.defaultFrame = Notuseful

    Returns the frame location that changes when a URL flip occurs

    ##0 IWMPSettings.invokeURLs = Notuseful

    Returns whether URL events should spawn a browser.

    ##1 IWMPSettings.mute = 静音

    返回或设置音频是否静音

    ##1 IWMPSettings.playCount = 播放次数

    返回或设置媒体对象播放的次数

    ##0 IWMPSettings.rate = Notuseful

    Returns current playback rate

    ##1 IWMPSettings.balance = 立体声平衡

    返回或设置音频左右声道的平衡,0为均衡,范围为:-100 ~ 100

    ##1 IWMPSettings.volume = 音量

    返回或设置音量,音量的范围为0 ~ 100

    ##0 IWMPSettings.getMode = Notuseful

    Returns the mode of the playlist

    ##0 IWMPSettings.setMode = Notuseful

    Sets the mode of the playlist

    ##1 IWMPSettings.enableErrorDialogs = 显示错误

    返回或设置是否自动显示错误对话框

    ##0 IWMPMediaCollection = Notuseful

    ##1 IWMPMediaCollection.add =

    Creates a new media object

    ##1 IWMPMediaCollection.getAll =

    Returns a collection of all the items

    ##1 IWMPMediaCollection.getByName =

    Returns a collection of items with the given name

    ##1 IWMPMediaCollection.getByGenre =

    Returns a collection of items with the given genre

    ##1 IWMPMediaCollection.getByAuthor =

    Returns a collection of items by a given author

    ##1 IWMPMediaCollection.getByAlbum =

    Returns a collection of items from the given album

    ##1 IWMPMediaCollection.getByAttribute =

    Returns a collection of items with the given attribute

    ##1 IWMPMediaCollection.remove =

    Removes an item from the media collection

    ##1 IWMPMediaCollection.getAttributeStringCollection =

    Returns the string collection associated with an attribute

    ##1 IWMPMediaCollection.getMediaAtom =

    Gets an atom associated with an item name which can be requested from an IWMPMedia out of this collection via getItemInfoByAtom

    ##1 IWMPMediaCollection.setDeleted =

    Sets the deleted flag on a media object

    ##1 IWMPMediaCollection.isDeleted =

    Gets the deleted flag on a media object

    ##0 IWMPStringCollection = Notuseful

    ##1 IWMPStringCollection.count =

    Returns the number of items in the string collection

    ##1 IWMPStringCollection.Item =

    Returns the string at the given index

    ##0 IWMPPlaylistCollection = Notuseful

    ##1 IWMPPlaylistCollection.newPlaylist =

    Creates a new playlist object

    ##1 IWMPPlaylistCollection.getAll =

    Returns a playlist array with all the playlists

    ##1 IWMPPlaylistCollection.getByName =

    Returns a playlist array with playlists matching the given name

    ##1 IWMPPlaylistCollection.remove =

    Removes an item from the playlist collection

    ##1 IWMPPlaylistCollection.setDeleted =

    Sets the deleted flag on a playlist object

    ##1 IWMPPlaylistCollection.isDeleted =

    Gets the deleted flag on a playlist object

    ##1 IWMPPlaylistCollection.importPlaylist =

    Imports a playlist object into the library

    ##0 IWMPPlaylistArray = Notuseful

    ##1 IWMPPlaylistArray.count =

    Returns the number of items in the playlist array

    ##1 IWMPPlaylistArray.Item =

    Returns the playlist object at the given index

    ##1 IWMPNetwork = WMP网络

    本对象提供关联Windows Media Player和网络连接的方法

    ##1 IWMPNetwork.bandWidth = 带宽

    返回地址属性所指向的流媒体的带宽

    ##1 IWMPNetwork.recoveredPackets = 被覆盖数据包数

    返回被覆盖的数据包数

    ##0 IWMPNetwork.sourceProtocol = Notuseful

    Returns the source protocol used to receive data.

    ##1 IWMPNetwork.receivedPackets = 已接收数据包

    返回已接收的数据包数

    ##1 IWMPNetwork.lostPackets = 丢包数

    返回丢包的数量

    ##1 IWMPNetwork.receptionQuality = 接收质量

    返回最近30秒中的接收质量

    ##1 IWMPNetwork.bufferingCount = 缓冲数量

    返回缓冲的数量

    ##1 IWMPNetwork.bufferingProgress = 缓冲进度

    返回缓冲已完成的百分比

    ##1 IWMPNetwork.bufferingTime = 缓冲时间

    以毫秒为单位返回或设置缓冲的时间,范围为:0 ~ 60秒,默认为5秒

    ##1 IWMPNetwork.frameRate = 实际帧数

    当前视频每百秒的帧数

    ##0 IWMPNetwork.maxBitRate = Notuseful

    Maximum possible video bit rate

    ##1 IWMPNetwork.bitRate = 位比率

    返回当前音频或视频流的位比率

    ##0 IWMPNetwork.getProxySettings = Notuseful

    Returns the proxy settings for the specified protocol

    ##0 IWMPNetwork.setProxySettings = Notuseful

    Sets the proxy settings for the specified protocol

    ##0 IWMPNetwork.getProxyName = Notuseful

    Returns the proxy name for the specified protocol

    ##0 IWMPNetwork.setProxyName = Notuseful

    Sets the proxy name for the specified protocol

    ##0 IWMPNetwork.getProxyPort = Notuseful

    Returns the proxy port for the specified protocol

    ##0 IWMPNetwork.setProxyPort = Notuseful

    Sets the proxy port for the specified protocol

    ##0 IWMPNetwork.getProxyExceptionList = Notuseful

    Returns the proxy exception list for the specified protocol

    ##0 IWMPNetwork.setProxyExceptionList = Notuseful

    Sets the proxy exception list for the specified protocol

    ##0 IWMPNetwork.getProxyBypassForLocal = Notuseful

    Returns whether or not to bypass the proxy for local addresses

    ##0 IWMPNetwork.setProxyBypassForLocal = Notuseful

    Sets whether or not to by pass the proxy for local addresses

    ##1 IWMPNetwork.maxBandwidth = 最大带宽

    返回设置允许的最大带宽

    ##1 IWMPNetwork.downloadProgress = 下载进度

    以百分比返回下载进度

    ##1 IWMPNetwork.encodedFrameRate = 帧数

    返回由本媒体文件创建者所提供的每秒的帧数

    ##1 IWMPNetwork.framesSkipped = 跳过帧数

    返回当回放时跳过的帧数

    ##1 IWMPCdromCollection = WMP光驱集

    本对象提供访问CD/DVD光驱集合的方法

    ##1 IWMPCdromCollection.count = 数量

    返回的CD/DVD光驱的数量

    ##1 IWMPCdromCollection.Item = 取项目

    使用光驱序号获取"WMP光驱"对象

    ##1 IWMPCdromCollection.Item.lIndex = 序号

    光驱的序号,0表示1,该参数必须在"数量"属性 - 1的范围内

    ##1 IWMPCdromCollection.getByDriveSpecifier = 取光驱

    使用具体的光盘标识符取得"WMP光驱"对象

    ##1 IWMPCdromCollection.getByDriveSpecifier.bstrDriveSpecifier = 盘符

    光盘的标识符,例如"f:",必须有";"号

    ##1 IWMPCdrom = WMP光驱

    本对象提供方法访问/操作CD/DVD光驱

    ##1 IWMPCdrom.driveSpecifier = 标识符

    返回光驱的标识符,例如"f:"

    ##1 IWMPCdrom.GetPlaylist = 取播放列表

    获取光驱上的播放列表,为"WMP播放列表"对象

    ##1 IWMPCdrom.eject = 弹出光驱

    弹出/关闭光驱,如果当前光驱为打开状态则关闭,反之则打开

    ##0 IWMPClosedCaption = Notuseful

    ##1 IWMPClosedCaption.SAMIStyle =

    Returns the previously set SAMI style

    ##1 IWMPClosedCaption.SAMILang =

    Returns the previously set SAMI language

    ##1 IWMPClosedCaption.SAMIFileName =

    Returns the previously set SAMI file name

    ##1 IWMPClosedCaption.captioningId =

    Returns the previously set Captioning ID

    ##0 IWMPError = Notuseful

    ##1 IWMPError.clearErrorQueue =

    Clears the error queue

    ##1 IWMPError.errorCount =

    Returns the number of error items

    ##1 IWMPError.GetItem =

    Returns an error item object

    ##1 IWMPError.webHelp =

    Launches WebHelp

    ##0 IWMPErrorItem = Notuseful

    ##1 IWMPErrorItem.errorCode =

    Returns the error code

    ##1 IWMPErrorItem.errorDescription =

    Returns a description of the error

    ##1 IWMPErrorItem.GeterrorContext =

    Returns context information for the error

    ##1 IWMPErrorItem.remedy =

    Returns remedy code for the error

    ##1 IWMPErrorItem.customUrl =

    Returns a custom url for this error (if avail)

    ##0 IWMPDVD = So_poor_to_give_up_this_object

    ##1 IWMPDVD.GetisAvailable =

    Returns whether or not the specified DVD functionality is available

    ##1 IWMPDVD.domain =

    Returns the current DVD domain

    ##1 IWMPDVD.topMenu =

    Displays the top menu of the DVD

    ##1 IWMPDVD.titleMenu =

    Displays the title menu of the current DVD title

    ##1 IWMPDVD.back =

    Navigates back one menu

    ##1 IWMPDVD.resume =

    Removes the menu from the screen and returns to playing the DVD

    ##0 IWMPPlayerApplication = Notuseful

    ##1 IWMPPlayerApplication.switchToPlayerApplication =

    Switches the display to player application

    ##1 IWMPPlayerApplication.switchToControl =

    Switches the display to control

    ##1 IWMPPlayerApplication.playerDocked =

    Returns a boolean value specifying whether or not the player is docked

    ##1 IWMPPlayerApplication.hasDisplay =

    Returns a boolean value specifying whether or not the control has display

    ##0 IWMPPlayer3 = Notuseful

    ##1 IWMPPlayer3.close =

    Closes the media

    ##1 IWMPPlayer3.URL =

    Returns or sets the URL

    ##1 IWMPPlayer3.openState =

    Returns the open state of the player

    ##1 IWMPPlayer3.playState =

    Returns the play state of the player

    ##1 IWMPPlayer3.Getcontrols =

    Returns the control handler

    ##1 IWMPPlayer3.Getsettings =

    Returns the settings handler

    ##1 IWMPPlayer3.GetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer3.GetmediaCollection =

    Returns the media collection handler

    ##1 IWMPPlayer3.GetplaylistCollection =

    Returns the playlist collection handler

    ##1 IWMPPlayer3.versionInfo =

    Returns the version information for the player

    ##1 IWMPPlayer3.Getnetwork =

    Returns the network information handler

    ##1 IWMPPlayer3.GetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 IWMPPlayer3.GetcdromCollection =

    Get the CDROM drive collection

    ##1 IWMPPlayer3.GetclosedCaption =

    Returns the closed caption handler

    ##1 IWMPPlayer3.isOnline =

    Returns whether the machine is online.

    ##1 IWMPPlayer3.GetError =

    Returns the error object

    ##1 IWMPPlayer3.status =

    Returns status string

    ##1 IWMPPlayer3.Getdvd =

    Returns the DVD handler

    ##1 IWMPPlayer3.enabled =

    Returns a boolen value specifying whether or not the control is enabled

    ##1 IWMPPlayer3.fullScreen =

    Returns a boolean value specifying whether or not the control is in full screen mode

    ##1 IWMPPlayer3.enableContextMenu =

    Returns a boolean value specifying whether or not the context menu is enabled on the control

    ##1 IWMPPlayer3.uiMode =

    Specifies the ui mode to select

    ##1 IWMPPlayer3.stretchToFit =

    Returns a boolen value specifying whether or not video is stretched

    ##1 IWMPPlayer3.windowlessVideo =

    Returns a boolen value specifying whether or not video is windowless

    ##1 IWMPPlayer3.SetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer3.SetcurrentPlaylist =

    Returns/sets the current playlist

    ##0 IWMPPlayer2 = Notuseful

    ##1 IWMPPlayer2.close =

    Closes the media

    ##1 IWMPPlayer2.URL =

    Returns or sets the URL

    ##1 IWMPPlayer2.openState =

    Returns the open state of the player

    ##1 IWMPPlayer2.playState =

    Returns the play state of the player

    ##1 IWMPPlayer2.Getcontrols =

    Returns the control handler

    ##1 IWMPPlayer2.Getsettings =

    Returns the settings handler

    ##1 IWMPPlayer2.GetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer2.GetmediaCollection =

    Returns the media collection handler

    ##1 IWMPPlayer2.GetplaylistCollection =

    Returns the playlist collection handler

    ##1 IWMPPlayer2.versionInfo =

    Returns the version information for the player

    ##1 IWMPPlayer2.Getnetwork =

    Returns the network information handler

    ##1 IWMPPlayer2.GetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 IWMPPlayer2.GetcdromCollection =

    Get the CDROM drive collection

    ##1 IWMPPlayer2.GetclosedCaption =

    Returns the closed caption handler

    ##1 IWMPPlayer2.isOnline =

    Returns whether the machine is online.

    ##1 IWMPPlayer2.GetError =

    Returns the error object

    ##1 IWMPPlayer2.status =

    Returns status string

    ##1 IWMPPlayer2.enabled =

    Returns a boolen value specifying whether or not the control is enabled

    ##1 IWMPPlayer2.fullScreen =

    Returns a boolean value specifying whether or not the control is in full screen mode

    ##1 IWMPPlayer2.enableContextMenu =

    Returns a boolean value specifying whether or not the context menu is enabled on the control

    ##1 IWMPPlayer2.uiMode =

    Specifies the ui mode to select

    ##1 IWMPPlayer2.stretchToFit =

    Returns a boolen value specifying whether or not video is stretched

    ##1 IWMPPlayer2.windowlessVideo =

    Returns a boolen value specifying whether or not video is windowless

    ##1 IWMPPlayer2.SetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer2.SetcurrentPlaylist =

    Returns/sets the current playlist

    ##0 IWMPPlayer = Notuseful

    tendollor 发表于 2008-11-25 19:59

    Windows Media Player控件的所有属性和方法----3

    本对象提供对Windows Media Player用户界面的基本控制。本对象是对WMP核心的一个补充

    ##1 IWMPPlayer.close =

    Closes the media

    ##1 IWMPPlayer.URL =

    Returns or sets the URL

    ##1 IWMPPlayer.openState =

    Returns the open state of the player

    ##1 IWMPPlayer.playState =

    Returns the play state of the player

    ##1 IWMPPlayer.Getcontrols =

    Returns the control handler

    ##1 IWMPPlayer.Getsettings =

    Returns the settings handler

    ##1 IWMPPlayer.GetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer.GetmediaCollection =

    Returns the media collection handler

    ##1 IWMPPlayer.GetplaylistCollection =

    Returns the playlist collection handler

    ##1 IWMPPlayer.versionInfo =

    Returns the version information for the player

    ##1 IWMPPlayer.Getnetwork =

    Returns the network information handler

    ##1 IWMPPlayer.GetcurrentPlaylist =

    Returns/sets the current playlist

    ##1 IWMPPlayer.GetcdromCollection =

    Get the CDROM drive collection

    ##1 IWMPPlayer.GetclosedCaption =

    Returns the closed caption handler

    ##1 IWMPPlayer.isOnline =

    Returns whether the machine is online.

    ##1 IWMPPlayer.GetError =

    Returns the error object

    ##1 IWMPPlayer.status =

    Returns status string

    ##1 IWMPPlayer.enabled =

    Returns a boolen value specifying whether or not the control is enabled

    ##1 IWMPPlayer.fullScreen =

    Returns a boolean value specifying whether or not the control is in full screen mode

    ##1 IWMPPlayer.enableContextMenu =

    Returns a boolean value specifying whether or not the context menu is enabled on the control

    ##1 IWMPPlayer.uiMode =

    Specifies the ui mode to select

    ##1 IWMPPlayer.SetcurrentMedia =

    Returns or sets the current media object

    ##1 IWMPPlayer.SetcurrentPlaylist =

    Returns/sets the current playlist

    ##0 IWMPErrorItem2 = Notuseful

    ##1 IWMPErrorItem2.errorCode =

    Returns the error code

    ##1 IWMPErrorItem2.errorDescription =

    Returns a description of the error

    ##1 IWMPErrorItem2.GeterrorContext =

    Returns context information for the error

    ##1 IWMPErrorItem2.remedy =

    Returns remedy code for the error

    ##1 IWMPErrorItem2.customUrl =

    Returns a custom url for this error (if avail)

    ##1 IWMPErrorItem2.condition =

    Returns condition for the error

    ##0 IWMPControls2 = Notuseful

    本对象继承自"WMP控制"对象,只有"step"方法是自有的,因此关于本对象方法与属性的用法您可以参阅"WMP控制"对象。

    ##1 IWMPControls2.GetisAvailable =

    Returns whether or not the specified media functionality is available

    ##1 IWMPControls2.play =

    Begins playing media

    ##1 IWMPControls2.stop =

    Stops play of media

    ##1 IWMPControls2.pause =

    Pauses play of media

    ##1 IWMPControls2.fastForward =

    Fast play of media in forward direction

    ##1 IWMPControls2.fastReverse =

    Fast play of media in reverse direction

    ##1 IWMPControls2.currentPosition =

    Returns the current position in media

    ##1 IWMPControls2.currentPositionString =

    Returns the current position in media as a string

    ##1 IWMPControls2.next =

    Sets the current item to the next item in the playlist

    ##1 IWMPControls2.previous =

    Sets the current item to the previous item in the playlist

    ##1 IWMPControls2.GetcurrentItem =

    Returns/Sets the play item

    ##1 IWMPControls2.currentMarker =

    Returns the current marker

    ##1 IWMPControls2.playItem =

    Sets the current item and plays it

    ##1 IWMPControls2.step =

    Advances the video one frame

    ##1 IWMPControls2.SetcurrentItem =

    Returns/Sets the play item

    ##0 IWMPMedia2 = Notuseful

    ##0 IWMPMedia2.GetisIdentical = Notuseful

    Determines if the supplied object is the same as the this one

    ##1 IWMPMedia2.sourceURL = 源连接

    返回本媒体对象的原始URL连接

    ##1 IWMPMedia2.name = 媒体名称

    返回媒体的名称

    ##1 IWMPMedia2.imageSourceWidth = 源图像宽度

    返回图像的原始宽度

    ##1 IWMPMedia2.imageSourceHeight = 源图像高度

    返回图像的原始高度

    ##1 IWMPMedia2.markerCount = 标记数量

    返回文件中标记的数量

    ##1 IWMPMedia2.getMarkerTime = 取标记时间

    通过序号获取标记时间

    ##1 IWMPMedia2.getMarkerTime.MarkerNum = 标记序号

    通过标记序号获取标记时间

    ##1 IWMPMedia2.getMarkerName = 取标记名

    通过标记序号获取标记名

    ##1 IWMPMedia2.getMarkerName.MarkerNum = 序号

    标记序号

    ##1 IWMPMedia2.duration = 播放位置

    以秒为单位返回或设置播放的位置

    ##1 IWMPMedia2.durationString = 播放位置文本

    返回以文本方式表达的当前的播放位置,"HH:MM:SS"格式

    ##1 IWMPMedia2.attributeCount = 属性数量

    返回当前媒体属性的数量

    ##1 IWMPMedia2.getAttributeName = 取属性名

    通过属性序号取得属性的名称,注意:属性序号必须在0 ~ 属性数量-1 的范围内

    ##1 IWMPMedia2.getItemInfo = 取项目信息

    通过项目名获取项目信息

    ##1 IWMPMedia2.getItemInfo.bstrItemName = 项目名

    项目名称

    ##1 IWMPMedia2.setItemInfo = 置项目信息

    通过属性名设置项目信息

    ##1 IWMPMedia2.setItemInfo.bstrItemName = 项目名

    项目的名称

    ##1 IWMPMedia2.setItemInfo.bstrVal = 值

    要设置的值

    ##1 IWMPMedia2.getItemInfoByAtom = 按序取项目信息

    按照序号获取项目信息

    ##1 IWMPMedia2.getItemInfoByAtom.lAtom = 序号

    项目序号

    ##0 IWMPMedia2.isMemberOf = Notuseful

    Is the media a member of the given playlist

    ##1 IWMPMedia2.isReadOnlyItem =

    Is the attribute read only

    ##0 IWMPMedia2.GetError = Notuseful

    Returns an error item pointer for a media specific error

    ##0 IWMPMedia3 = Notuseful

    ##1 IWMPMedia3.GetisIdentical =

    Determines if the supplied object is the same as the this one

    ##1 IWMPMedia3.sourceURL =

    Returns the media URL

    ##1 IWMPMedia3.name =

    Returns the name of the media

    ##1 IWMPMedia3.imageSourceWidth =

    Returns the original width of the source images

    ##1 IWMPMedia3.imageSourceHeight =

    Returns the original height of the source images

    ##1 IWMPMedia3.markerCount =

    Returns the number of markers in the file

    ##1 IWMPMedia3.getMarkerTime =

    Returns the time of a marker

    ##1 IWMPMedia3.getMarkerName =

    Returns the name of a marker

    ##1 IWMPMedia3.duration =

    Returns duration of current media

    ##1 IWMPMedia3.durationString =

    Returns duration of current media as a string

    ##1 IWMPMedia3.attributeCount =

    Returns the count of the attributes associated with this media

    ##1 IWMPMedia3.getAttributeName =

    Returns the name of the attribute whose index has been specified

    ##1 IWMPMedia3.getItemInfo =

    Returns the value of specified attribute for this media

    ##1 IWMPMedia3.setItemInfo =

    Sets the value of specified attribute for this media

    ##1 IWMPMedia3.getItemInfoByAtom =

    Gets an item info by atom

    ##1 IWMPMedia3.isMemberOf =

    Is the media a member of the given playlist

    ##1 IWMPMedia3.isReadOnlyItem =

    Is the attribute read only

    ##1 IWMPMedia3.GetError =

    Returns an error item pointer for a media specific error

    ##0 IWMPMetadataPicture = Notuseful

    ##0 IWMPMetadataText = Notuseful

    ##0 IWMPSettings2 = Notuseful

    ##1 IWMPSettings2.GetisAvailable =

    Returns whether or not the specified media functionality is available

    ##1 IWMPSettings2.autoStart =

    Returns whether media should automatically begin playing

    ##1 IWMPSettings2.baseURL =

    Returns the base URL used for relative path resolution

    ##1 IWMPSettings2.defaultFrame =

    Returns the frame location that changes when a URL flip occurs

    ##1 IWMPSettings2.invokeURLs =

    Returns whether URL events should spawn a browser.

    ##1 IWMPSettings2.mute =

    Returns whether audio should be muted.

    ##1 IWMPSettings2.playCount =

    Returns how many times media should play

    ##1 IWMPSettings2.rate =

    Returns current playback rate

    ##1 IWMPSettings2.balance =

    Returns current audio Balance

    ##1 IWMPSettings2.volume =

    Returns current audio volume

    ##1 IWMPSettings2.getMode =

    Returns the mode of the playlist

    ##1 IWMPSettings2.setMode =

    Sets the mode of the playlist

    ##1 IWMPSettings2.enableErrorDialogs =

    Returns whether error dialogs are shown by default when embedded

    ##1 IWMPSettings2.defaultAudioLanguage =

    Returns the LCID of default audio language

    ##1 IWMPControls3 = WMP控制3

    本对象继承自"WMP控制"对象,只有以下方法是自有的:

    因此关于本对象方法与属性的用法您可以参阅"WMP控制"对象。

    ##0 IWMPControls3.GetisAvailable =

    Returns whether or not the specified media functionality is available

    ##0 IWMPControls3.play =

    Begins playing media

    ##0 IWMPControls3.stop =

    Stops play of media

    ##0 IWMPControls3.pause =

    Pauses play of media

    ##0 IWMPControls3.fastForward =

    Fast play of media in forward direction

    ##0 IWMPControls3.fastReverse =

    Fast play of media in reverse direction

    ##0 IWMPControls3.currentPosition =

    Returns the current position in media

    ##0 IWMPControls3.currentPositionString =

    Returns the current position in media as a string

    ##0 IWMPControls3.next =

    Sets the current item to the next item in the playlist

    ##0 IWMPControls3.previous =

    Sets the current item to the previous item in the playlist

    ##0 IWMPControls3.GetcurrentItem =

    Returns/Sets the play item

    ##0 IWMPControls3.currentMarker =

    Returns the current marker

    ##0 IWMPControls3.playItem =

    Sets the current item and plays it

    ##0 IWMPControls3.step =

    Advances the video one frame

    ##1 IWMPControls3.audioLanguageCount = 音频语言数量

    返回音频所支持的语言的数量

    ##1 IWMPControls3.getAudioLanguageID = 取语言标识

    通过索引获取音频语言标别

    ##1 IWMPControls3.getAudioLanguageID.lIndex = 语言索引

    指定音频语言索引

    ##1 IWMPControls3.getAudioLanguageDescription = 取音频语言描述

    获取指定索引的音频语言的描述

    ##1 IWMPControls3.getAudioLanguageDescription.lIndex = 语言索引

    指定语言索引

    ##1 IWMPControls3.currentAudioLanguage = 音频语言

    返回或设置当前的音频语言

    ##1 IWMPControls3.currentAudioLanguageIndex = 音频语言索引

    获取或设置当前音频语言的索引

    ##1 IWMPControls3.getLanguageName = 取语言名

    使用标识符(LCID)获取音频语言名

    ##1 IWMPControls3.getLanguageName.lLangID = 索引

    索引,LCID

    ##1 IWMPControls3.currentPositionTimecode = 位置代码

    返回或设置当前媒体播放的位置/时间,使用时间代码格式,此属性当前支持SMPTE时间代码 ,例如:"01:00:30:05"

    ##0 IWMPControls3.SetcurrentItem =

    Returns/Sets the play item

    ##0 IWMPClosedCaption2 = Notuseful

    ##1 IWMPClosedCa

    ————————————————

    版权声明:本文为CSDN博主「jiangqin115」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。

    原文链接:https://blog.csdn.net/jiangqin115/article/details/49412393

    相关文章

      网友评论

          本文标题:Windows Media Player控件的所有属性和方法

          本文链接:https://www.haomeiwen.com/subject/rhaiectx.html