使用方法:

方法一、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.xml vcastr.xml
IsAutoPlay 影片自动播放参数:0表示不自动播放,1表示自动播放 0
IsContinue 影片连续播放参数:0表示不连续播放,1表示连续循环播 1
IsRandom 影片随机播放参数:0表示不随机播放,1表示随机播放 0
DefaultVolume 默认音量参数 :0-100 的数值,设置影片开始默认音量大小 100
BarPosition 控制栏位置参数 :0表示在影片上浮动显示,1表示在影片下方显示 0
IsShowBar 控制栏显示参数 :0表示不显示;1表示一直显示;2表示鼠标悬停时显示;3表示开始不显示,鼠标悬停后显示 2
BarColor 播放控制栏颜色,颜色都以0x开始16进制数字表示 0x000033
BarTransparent 播放控制栏透明度 60
GlowColor 按键图标颜色,颜色都以0x开始16进制数字表示 0x66ff00
IconColor 鼠标悬停时光晕颜色,颜色都以0x开始16进制数字表示 0xFFFFFF
TextColor 播放器文字颜色,颜色都以0x开始16进制数字表示 0xFFFFFF
LogoText 可以添加自己网站名称等信息(英文)
LogoUrl 可以从外部读取logo图片,注意自己调整logo大小,支持图片格式和swf格式
EndSwf 影片播放结束后,从外部读取swf文件,可以添加相关影片信息,影片分享等信息,需自己制作
BeginSwf 影片开始播放之前,从外部读取swf文件,可以添加广告,或者网站信息,需自己制作
IsShowTime 是否显示时间 : 0表示不显示时间,1表示显示时间 1
BufferTime 影片缓冲时间,单位(秒) 2

常见问题

  • 问:Logo 文字无法显示
    答:Logo 文字不能支持中文,可以用LogoUrl参数将Logo做成.swf文件或者.png文件。

使用flv播放器 Vcastr 网页视频播放器代码中的参数说明相关推荐

  1. 网页视频播放器代码Vcastr2

    TIP:播放的视频地址必须是线上的 第一种:js <p style="text-align: center;"><script type="text/j ...

  2. 【分享】分享一款不错的网页视频播放器

    作为一名前端开发,在做页面时会碰到视频展示,一般都是用 flash 加载视频源文件,可惜功能太少,而且支持的视频格式有限.下面给大家分享一款不错的视频播放器--ckplayer(超酷网页视频播放器). ...

  3. 7款Flash和Javascript网页视频播放器

    Flash和javascript网页视频播放器.梦想中的视频播放器是这样的: 支持所有格式,兼容所有主流视频网站,支持播放列表.视频缩略图.全屏播放.画面调节.预加载.体积贼小,功能贼多--. 也许你 ...

  4. 比较好的网页视频播放器总结

    最近尝试了几个网页视频播放器,主要有Video.js,Ckplayer,Jwplayer.这三款使用简单,提高大量的JavaScript函数API,容易操控. Video JS是一个基于JavaScr ...

  5. Flash和Javascript网页视频播放器

    7款Flash和Javascript网页视频播放器(转载) 2011-01-22 20:26:27|  分类: 英语学习|字号 订阅 我用有道阅读看到这篇好文,希望和大家分享.我的看法是: 以下原文转 ...

  6. 网页视频播放器/视频播放插件

    网页视频播放器/视频播放插件 支持的音视频格式: .swf..wmv..asf..wma..mp3..asx..mid..midi..rm..ra..rmvb..mp4..mov..avi..wav. ...

  7. 网页视频播放器代码大全 + 21个为您的站点和博客提供的免费视频播放器

    推荐 使用 极酷 Web在线播放器. 网页中嵌入视频代码综合全然版 1.avi格式 代码片断例如以下: 程序代码 <objectid="video"width="4 ...

  8. obs和red5以及网页视频播放器实行直播

    使用OBS和网页播放器配置一个在线直播 1.首先去官网下载一个OBS,http://soft.gszyhb.cn/OBS 2.和下载安装red5添加链接描述 3.下载完后打开目录将red.bat打开, ...

  9. 如何用html调用网页中的视频,如何将网页视频播放器调用换成西瓜影音 西瓜影音网页调用说明以及网页调用代码...

    西瓜影音可以调用在任何程序的视频网站中,那么如何将网页视频播放器调用换成西瓜影音呢?西瓜影音网页控件调用代码是什么?接下来就来看看西瓜影音网页调用说明以及网页调用代码. 网页控件调用说明: 获取西瓜影 ...

最新文章

  1. wordpress自适应表格_给WordPress添加自适应表格 让表格自适应屏幕
  2. Python这么慢,为啥大公司还在用?
  3. “稳定”凸包----poj1228
  4. SQL SERVER 数据库清空语句 忽略外键 触发器 等
  5. SAP CRM One Order header数据库表几个和时间戳相关的字段
  6. 转.h和.cpp文件的区别
  7. Win32ASM学习[8]: 进制转换的库函数
  8. EntityFramework实体默认值遇到Oracle自增主键
  9. LeetCode-3Sum -三数求和-有序数组扫描
  10. 用指针比较三个数大小_《测量力的大小》教案
  11. static_cast,reinterpret_cast,const_cast,dynamic_cast:
  12. 【转】java注解-最通俗易懂的讲解
  13. logisim基础(非常基础)----寄存器元件的使用
  14. 21天学通Java学习笔记-Day03
  15. 强化学习实战——Q learning 实现倒立摆
  16. 使用MATLAB和ANSYS对四杆桁架结构进行有限元分析
  17. 网络代理之后无法抓包的解决方案
  18. android int 字节数组,android 将int转byte,byte转int的两种方法
  19. 12306 并不是我们想的那样
  20. 案例|双循环下的国货自信:波司登抵御寒冬的新战袍

热门文章

  1. 安卓 即构科技直播使用阿里云鉴权切换流地址
  2. c#Action和Func(简单用法)
  3. JAX vs Tensorflow
  4. Ivan comes again set用法
  5. 2014全国计算机等级考试报名时间,2014年下半年全国计算机等级考试时间安排
  6. 让Yahoo开通POP3和SMTP
  7. ffmpeg 将h264格式文件编码为MP4文件
  8. 昨日答案: 行测题库:行测人文常识模拟题答案
  9. ntp授时服务器(医院时钟系统)在网络里的作用
  10. java weka 聚类_# weka 聚类的使用