播放器代码大全

上传人:kms****20 文档编号:40493718 上传时间:2018-05-26 格式:DOC 页数:19 大小:80KB
返回 下载 相关 举报
播放器代码大全_第1页
第1页 / 共19页
播放器代码大全_第2页
第2页 / 共19页
播放器代码大全_第3页
第3页 / 共19页
播放器代码大全_第4页
第4页 / 共19页
播放器代码大全_第5页
第5页 / 共19页
点击查看更多>>
资源描述

《播放器代码大全》由会员分享,可在线阅读,更多相关《播放器代码大全(19页珍藏版)》请在金锄头文库上搜索。

1、播放器代码大全 1.avi 格式 代码片断如下:2.mpg 格式 代码片断如下:3.smi 格式 代码片断如下:4.rm 格式 代码片断如下:5.wmv 格式 代码片断如下:6.wma 格式 放在 里面。下面是部分解释:7.Windows Media Player 系列(不同面板样式) 综合型:简易型:标签型:多功能型:不仅可以放曲子,还能放 Flash 和其它视频文件。网页播放器的参数含义 Windows Media Player 网页播放器 参数含义(默认 0 为否,-1 或 1 为是)上面的这个播放器是老式的那种,6.4 版本!新式播放器是在 MediaPlayer9.0 以后出现的,

2、也就是说只有装了 9.0 或 9.0 以上的播放器才能正常使用的。-下面是新式播放器代码,相对以前的来说要简单很多:Real Player 网页播放器 参数含义参数:autostart 属性:True 或是 False 作用:指定是否自动播放指定的源文件 参数:backgroundcolor 属性:任何用符号“#”开头的 16 进制数值或是任何预定义的颜色 作用:指定图像窗口的背景颜色 参数:center 属性:True 或是 False 作用:指定片断使用初始编码大小播放,并且在图像 窗口的中央。 参数:classid 属性:“clsid:CFCDAA03-8BE4-1lcf-B84B002

3、0AFBBCCFA:* 作用:用于指 定 ActiveX 控件的唯一的字符串标示,可以认出嵌入的 RealPalyer 播放器。 参数:console 属性:任何字符串作用:可以将各种不同的 RealPlayer 控制聚集在网页上, 这样它们可以交互使用或是保持独立,而且互相不影响 参数:controls 属性: ImageWindow,All,ControlPanel,PlavButton,PlayOnlyButton, PauseButton,StopButton,FFCtrl,RWCtrl,MuteCtrl,MuteVolume,VolumeSlider,Posi tionSlider,

4、TACCtrl,HomeCtrl,InfoVolumePanel,InfoPanel,StatusBar,StatusField ,PositionField 作用:可以让你指定那些控制是可见的。 参数:height 属性:任何整数值作用:指定 RealPlayer 元素的高度,单位:像素 参数:id 属性:任何字符串作用:为标签中的 RealPlayer 元素指定名字。 参数:imagestatus 属性:True 或是 False 作用:指定是否在图像窗口中显示状态信息, 默认值是 true 参数:loop 属性:True 或是 False 作用:可以让你指定片断是否无限循环 参数:mai

5、ntainaspect 属性:True 或是 False 作用:默认 RealPlayer 拉伸所有的片断来 充满整个图像窗口。 参数:name 属性:任何字符串作用:为标签中的 RealPlayer 元素指定名字(在标签中使用id) 参数:nojava 属性:True 或是 False 作用:避免启动 Java 虚拟机 参数:nolabels 属性:True 或是 False 作用:可以禁止显示标题或是版权信息 (realplayer5.0 以上时,它是垃圾.) 参数:nologo 属性:True 或是 False 作用:避免 RealPlayer 启动时在图像窗口中显示 参数:numloo

6、p 属性:任何整数值作用:让你能够指定文件片循环的次数,不需要参数loop 参数:prefetch 属性:True 或是 False 作用:指定在播放前,RealPlayer 是否可以获得 流描述信息,默认值是 False 参数:region 属性:任何字符串作用:同 SMIL 一起使用。允许你指定使用 HTML 代替 SMIL 参数:scriptcallbacks 属性:用逗号分割的列表作用:指定浏览器的回调监控(好高级的 东东!) 参数:shuffle 属性:True 或是 False 作用:同多文件片的 ram 文件或是 SMIL 文件一起使 用。可以让 RealPlayer 随机播放列

7、表中的文件 参数:src 属性:任何合法的相对或是完整的 URL 作用:指定播放的文件或是源文件的地 址 参数:type 属性:字符串作用:为嵌入插件指定 MIME 类型 参数:width 属性:任何整数值作用:指定 RealPlayer 元素的宽度RealPlayer 的一些函数、方法和过程这是 Real Player ActiveX Control Library (Version 1.0) 的所有函数与方法,有兴趣 可以研究一下。function GetSource: WideString; procedure SetSource(const lpszNewValue: WideStri

8、ng); 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

9、SetAutoStart(bNewValue: WordBool); function GetAutoGotoURL: WordBool; procedure SetAutoGotoURL(bNewValue: WordBool); function GetVolume: Smallint; procedure SetVolume(nVol: Smallint); function GetMute: WordBool; procedure SetMute(bMute: WordBool); function GetLoop: WordBool; procedure SetLoop(bVal:

10、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:

11、 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; fu

12、nction 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); proc

13、edure 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 Can

14、Play: WordBool; function CanPause: WordBool; procedure SetPosition(lPosition: Integer); function GetNumLoop: Integer; procedure SetNumLoop(lVal: Integer); function GetCenter: WordBool; procedure SetCenter(bVal: WordBool); function GetNoLogo: WordBool; procedure SetNoLogo(bVal: WordBool); function Ge

15、tMaintainAspect: WordBool; procedure SetMaintainAspect(bVal: WordBool); function GetBackgroundColor: WideString; procedure SetBackgroundColor(const pVal: WideString); function GetStereoState: WordBool; function GetLiveState: WordBool; function GetShowStatistics: WordBool; procedure SetShowStatistics

16、(bVal: WordBool); function GetShowPreferences: WordBool; procedure SetShowPreferences(bVal: WordBool); function GetShowAbout: WordBool; procedure SetShowAbout(bVal: WordBool); function GetOriginalSize: WordBool; procedure SetOriginalSize; function GetDoubleSize: WordBool; procedure SetDoubleSize; function GetFullScreen: WordBool; procedure SetFullScreen; function GetEnableContextMenu: WordBool

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号