首页 »Dreamweaver » 网页播放器代码:为网页加播放器 实战代码分析(2) »正文网页播放器代码:为网页加播放器 实战代码分析(2)来源: 发布时间:星期四, 2009年2月12日 浏览:172次 评论:0
=pg id=xydwtext twffan=\"done\"> 看着很多很复杂样子其实就是多了些播放器参数可以不要... Real Player 网页播放器 参数含义 参数:autostart 属性:True或是False 作用:指定是否自动播放指定源文件 参数:backgroundcolor 属性:任何用符号“#”开头16进制数值或是任何预定义颜色作用:指定图像窗口背景颜色 参数:center 属性:True或是False 作用:指定片断使用编码大小播放并且在图像窗口中央 参数:id 属性:\"clsid:CFCDAA03-8BE4-1lcf-B84B0020AFBBCCFA:** 作用:用于指定ActiveXControl控件唯串标示可以认出嵌入RealPalyer播放器 参数:console 属性:任何串作用:可以将各种区别RealPlayer控制聚集在网页上这样它们可以交互使用或是保持独立而且互相不影响 参数:controls 属性:ImageWindowAllControlPanelPlavButtonPlayOnlyButton PauseButton,StopButtonFFCtrlRWCtrlMuteCtrlMuteVolumeVolumeSliderPositionSlider,TACCtrlHomeCtrlInfoVolumePanelInfoPanelStatusBarStatusFieldPositionField 作用:可以让你指定那些控制是可见 参数:height 属性:任何整数值作用:指定RealPlayer元素高度单位:像素 参数:id 属性:任何串作用:为标签中RealPlayer元素指定名字 参数:imagestatus 属性:True或是False 作用:指定是否在图像窗口中显示状态信息默认值是true 参数:loop 属性:True或是False 作用:可以让你指定片断是否无限循环 参数:tainaspect 属性:True或是False 作用:默认RealPlayer拉伸所有片断来充满整个图像窗口 参数:name 属性:任何串作用:为标签中RealPlayer元素指定名字(在标签中使用id) 参数:nojava 属性:True或是False 作用:避免启动Java虚拟机 参数:nolabels 属性:True或是False 作用:可以禁止显示标题或是版权信息(realplayer5.0以上时它是垃圾...) 参数:nologo 属性:True或是False 作用:避免RealPlayer启动时在图像窗口中显示 参数:numloop 属性:任何整数值作用:让你能够指定文件片循环次数不需要参数loop 参数:prefetch 属性:True或是False 作用:指定在播放前RealPlayer是否可以获得流描述信息默认值是False 参数:region 属性:任何串作用:同SMIL起使用允许你指定使用HTML代替SMIL 参数:scriptcallbacks 属性:用逗号分割列表作用:指定浏览器回调监控(好高级东东!) 参数:shuffle 属性:True或是False 作用:同多文件片ram文件或是SMIL文件起使用可以让RealPlayer随机播放列表中文件 参数:src 属性:任何合法相对或是完整URL 作用:指定播放文件或是源文件地址 参数:type 属性:串作用:为嵌入插件指定MIME类型 参数:width 属性:任何整数值作用:指定RealPlayer元素宽度 RealPlayer些、思路方法和过程 这是 Real Player ActiveX Control Library (Version 1.0) 所有和思路方法有兴趣可以研究下 function GetSource: WideString; procedure SetSource(const lpszNewValue: WideString); function GetConsole: WideString; procedure SetConsole(const lpszNewValue: WideString); function GetControls: WideString; procedure SetControls(const lpszNewValue: WideString); function GetNoLabels: WordBool; procedure SetNoLabels(bNewValue: WordBool); function GetAutoStart: WordBool; procedure SetAutoStart(bNewValue: WordBool); function GetAutoGotoURL: WordBool; procedure SetAutoGotoURL(bNewValue: WordBool); function GetVolume: Small; procedure SetVolume(nVol: Small); function GetMute: WordBool; procedure SetMute(bMute: WordBool); function GetLoop: WordBool; procedure SetLoop(bVal: WordBool); function GetImageStatus: WordBool; procedure SetImageStatus(bEnable: WordBool); function GetPacketsTotal: Integer; function GetPacketsReceived: Integer; function GetPacketsOutOfOrder: Integer; function GetPacketsMissing: Integer; function GetPacketsEarly: Integer; function GetPacketsLate: Integer; function GetBandwidthAverage: Integer; function GetBandwidthCurrent: Integer; procedure DoPlayPause; procedure DoStop; procedure DoNextItem; procedure DoPrevItem; function CanPlayPause: WordBool; function CanStop: WordBool; function HasNextItem: WordBool; function HasPrevItem: WordBool; function HasNextEntry: WordBool; function HasPrevEntry: WordBool; procedure DoNextEntry; procedure DoPrevEntry; procedure AboutBox; procedure EditPreferences; procedure HideShowStatistics; function IsStatisticsVisible: WordBool; procedure DoGotoURL(const url: WideString; const target: WideString); procedure DoPlay; procedure DoPause; function GetPosition: Integer; function GetPlayState: Integer; function GetLength: Integer; function GetTitle: WideString; function GetAuthor: WideString; function GetCopyright: WideString; function GetClipWidth: Integer; function GetClipHeight: Integer; function CanPlay: WordBool; function CanPause: WordBool; procedure SetPosition(lPosition: Integer); function GetNumLoop: Integer; procedure SetNumLoop(lVal: Integer); function GetCenter: WordBool; procedure SetCenter(bVal: WordBool); function GetNoLog WordBool; procedure SetNoLogo(bVal: WordBool); function GetMaainAspect: WordBool; procedure SetMaainAspect(bVal: WordBool); function GetBackgroundColor: WideString; procedure SetBackgroundColor(const pVal: WideString); function GetStereoState: WordBool; function GetLiveState: WordBool; function GetShowStatistics: WordBool; procedure SetShowStatistics(bVal: WordBool); function GetShowPreferences: WordBool; procedure SetShowPreferences(bVal: WordBool); function GetShowonmouseover WordBool; procedure SetShowAbou 1
相关文章读者评论发表评论 |