使用flv播放器 Vcastr 网页视频播放器代码中的参数说明
来源:互联网 发布:苏联解体后经济数据 编辑:程序博客网 时间:2024/05/16 19:30
使用方法:
方法一、js嵌入
直接copy下面代码,修改其中红色部分,即:swf_width、swf_height、texts、files 参数
<script type="text/javascript">var swf_width=240
var swf_height=240
var texts=’幸福的脚丫预告片’
var files=’http://www.ruochi.com/product/vcastr/flv/happy_feet.flv’
document.write(’<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="’+ swf_width +’" height="’+ swf_height +’">’);
document.write(’<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf"><param name="quality" value="high">’);
document.write(’<param name="menu" value="false"><param name="allowFullScreen" value="true" />’);
document.write(’<param name="FlashVars" value="vcastr_file=’+files+’&vcastr_title=’+texts+’">’);
document.write(’<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file=’+files+’&vcastr_title=’+texts+’" menu="false" quality="high" width="’+ swf_width +’" height="’+ swf_height +’" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />’); document.write(’</object>’);
</script>
- 其中:
幸福的脚丫预告片 是标题。
http://www.ruochi.com/product/vcastr/flv/happy_feet.flv 是FLV文件地址。
http://www.ruochi.com/product/vcastr2/vcastr22.swf 是FLV文件播放器地址(如果你不会制作,可下载别人的然后上传到自己的空间再调用)。
- flv播放器 Vcastr 2.0 下载
http://www.ruochi.com/product/vcastr2/vcastr22.zip
方法二、简单直接传递影片地址
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="180"><param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>
方法三、读取影片xml
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="120"><param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="120"></embed>
</object>
其中:http://www.ruochi.com/product/vcastr/vcastr.xml 是播放列表的xml地址
高级选项
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="180"><param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>
<http://www.ruochi.com/product/vcastr2/vcastr22.swf?参数A=111&参数B=222&....>
在以上"参数A=111&参数B=222"部分添加参数,使用 参数=值 的格式,多个参数用&连接,参数数量不限制,注意有2个红色部分http://www.ruochi.com/product/vcastr2/vcastr22.swf地方需要修改
例如:
value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=幸福的脚丫预告片&BarColor=0xFF6600&BarPosition=1"表示影片地址是"http://www.ruochi.com/product/vcastr/flv/happy_feet.flv",标题是"变形金刚预告片",控制栏颜色是0xFF6600,控制栏位置在下方。
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="224"><param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=幸福的脚丫预告片&BarColor=0xFF6600&BarPosition=1">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=幸福的脚丫预告片&BarColor=0xFF6600&BarPosition=1" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="224"></embed>
参数名称参数说明默认值vcastr_file方法2传递影片flv文件地址参数,多个使用|分开空vcastr_title影片标题参数,多个使用|分开,与方法2配合使用空vcastr_xml方法3 传递影片flv文件地址参数,样板参考 http://www.ruochi.com/product/vcastr2/vcastr.xmlvcastr.xmlIsAutoPlay影片自动播放参数:0表示不自动播放,1表示自动播放0IsContinue影片连续播放参数:0表示不连续播放,1表示连续循环播1IsRandom影片随机播放参数:0表示不随机播放,1表示随机播放0DefaultVolume默认音量参数 :0-100 的数值,设置影片开始默认音量大小100BarPosition控制栏位置参数 :0表示在影片上浮动显示,1表示在影片下方显示0IsShowBar控制栏显示参数 :0表示不显示;1表示一直显示;2表示鼠标悬停时显示;3表示开始不显示,鼠标悬停后显示2BarColor播放控制栏颜色,颜色都以0x开始16进制数字表示0x000033BarTransparent播放控制栏透明度60GlowColor按键图标颜色,颜色都以0x开始16进制数字表示0x66ff00IconColor鼠标悬停时光晕颜色,颜色都以0x开始16进制数字表示0xFFFFFFTextColor播放器文字颜色,颜色都以0x开始16进制数字表示0xFFFFFFLogoText可以添加自己网站名称等信息(英文)空LogoUrl可以从外部读取logo图片,注意自己调整logo大小,支持图片格式和swf格式空EndSwf影片播放结束后,从外部读取swf文件,可以添加相关影片信息,影片分享等信息,需自己制作空BeginSwf影片开始播放之前,从外部读取swf文件,可以添加广告,或者网站信息,需自己制作空IsShowTime是否显示时间 : 0表示不显示时间,1表示显示时间1BufferTime影片缓冲时间,单位(秒)2
常见问题
- 问:Logo 文字无法显示
答:Logo 文字不能支持中文,可以用LogoUrl参数将Logo做成.swf文件或者.png文件。
- 使用flv播放器 Vcastr 网页视频播放器代码中的参数说明
- Vcastr 2.2 flv 网络播放器使用功能/方法
- Vcastr 2.2 flv 网络播放器
- flv 视频播放器代码
- flv网页播放器代码
- flv网页播放器代码
- vcastr.swf 网络视频播放器,参数设置
- html嵌入播放器,flv视频播放器 Flvplayer.swf 可自动播放参数说明
- html嵌入播放器,flv视频播放器 Flvplayer.swf 可自动播放参数说明
- html嵌入播放器,flv视频播放器Flvplayer.swf 可自动播放参数说明
- html嵌入播放器,flv视频播放器 Flvplayer.swf 可自动播放参数说明
- flv视频播放器
- 在线网页视频播放器(flash flv播放器)
- 网页播放flv视频
- 网页播放flv视频
- FLV播放器代码 网页FLV在线播放代码下载
- flv视频播放器 自动循环播放代码
- flv播放器代码
- MSSQL 将截断字符串或二进制数据关键字:
- 绘制余弦曲线——在屏幕上用“*”显示0~360度的余弦函数cos(x)曲线
- 文件读写小程序
- 【疑惑】难道真的是境界未到?该投票的结果让我觉得无法理解。
- 程序员的命运
- 使用flv播放器 Vcastr 网页视频播放器代码中的参数说明
- Oracle IO问题解析(三)—— IO系统的设计和配置(1)
- [双语阅读]奥巴马米歇尔入围“最佳着装榜”大谈淘货经
- 一个ACM思路
- 项目第一天开始试运行
- 将XML文件绑定到TreeView,建立树形导航
- internal block structure(1)
- 求BOM根据阶数展开的SQL语句
- 关于<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"