加入收藏 | 设为首页 | 会员中心 | RSS
您当前的位置:首页 > 在线教程 > 网络编程

几种在网页中播放FLV文件的代码

时间:2008-07-01 16:59:20  来源:web  作者:admin
推荐几种在网页中播放FLV文件的代码
 

使用方法:m4F飞天影像[巴中]

方法一、js嵌入m4F飞天影像[巴中]

直接copy下面代码,修改其中红色部分,即:swf_width、swf_height、texts、files 参数m4F飞天影像[巴中]

<script type="text/javascript">m4F飞天影像[巴中]
var swf_width=240m4F飞天影像[巴中]
var swf_height=240m4F飞天影像[巴中]
var texts=’幸福的脚丫预告片m4F飞天影像[巴中]
var files=’http://www.ruochi.com/product/vcastr/flv/happy_feet.flvm4F飞天影像[巴中]
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 +’">’);m4F飞天影像[巴中]
document.write(’<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf"><param name="quality" value="high">’);m4F飞天影像[巴中]
document.write(’<param name="menu" value="false"><param name="allowFullScreen" value="true" />’);m4F飞天影像[巴中]
document.write(’<param name="FlashVars" value="vcastr_file=’+files+’&vcastr_title=’+texts+’">’);m4F飞天影像[巴中]
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>’);m4F飞天影像[巴中]
</script>

m4F飞天影像[巴中]

    其中:m4F飞天影像[巴中]
    幸福的脚丫预告片 是标题。m4F飞天影像[巴中]
    http://www.ruochi.com/product/vcastr/flv/happy_feet.flv 是FLV文件地址。m4F飞天影像[巴中]
    http://www.ruochi.com/product/vcastr2/vcastr22.swf 是FLV文件播放器地址(如果你不会制作,可下载别人的然后上传到自己的空间再调用)。

m4F飞天影像[巴中]

m4F飞天影像[巴中]

m4F飞天影像[巴中]

m4F飞天影像[巴中]
m4F飞天影像[巴中]

方法二、简单直接传递影片地址m4F飞天影像[巴中]

<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">m4F飞天影像[巴中]
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">m4F飞天影像[巴中]
<param name="quality" value="high">m4F飞天影像[巴中]
<param name="allowFullScreen" value="true" />m4F飞天影像[巴中]
<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>m4F飞天影像[巴中]
</object>
m4F飞天影像[巴中]
m4F飞天影像[巴中]

方法三、读取影片xmlm4F飞天影像[巴中]

 1/4    1 2 3 4 ›› ›|

<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">m4F飞天影像[巴中]
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml">m4F飞天影像[巴中]
<param name="quality" value="high">m4F飞天影像[巴中]
<param name="allowFullScreen" value="true" />m4F飞天影像[巴中]
<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>m4F飞天影像[巴中]
</object>
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表