晴 2009/09/09 14:32
| |
Tags: ,
随着Youtube深入人们的生活,越来越多的多媒体文件被应用于网页,BLOG之中。起初,Youtube还允许人们引用,用Embeded的方式嵌入网页中,但后来这种“盗”用会被随时取缔,原先可以播放的多媒体文件只能显示,你必须到Youtube之中才能播放,以下就是一例:






     当然,你也可以下载FLV 文件后,上传到你的网页中,用插入FLV文件的方式播放:

Flash Video Player文件


      不过,你必须点击展开播放才行。

    这里介绍一种简单的方式,可以脱离Youtube在网页本地播放:

   1)下载FLV播放器,解压后将player-viral.swf和yt.swf上传到你的网页,我的例子中是/attachment的目录中;

   2)利用这个网页,你可以将FLV文件下载到本地:   http://www.downloadyoutubevideos.com

   3) 上传FLV文件到你的网页,我的例子中是/attachment的目录中;

   4)在网页中嵌入以下代码:

<object width="425" height="355" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="flashvars" value="file=http://www.wilsonl.com/attachment/hereiam.flv&autostart=1" />
<param name="movie" value="http://www.wilsonl.com/attachment/player-viral.swf" />
<embed src="http://www.wilsonl.com/attachment/player-viral.swf" width="425" height="355" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://http://www.wilsonl.com/attachment/hereiam.flv" />
</object>


    4)这是实际的效果:







      怎么样,不错吧?



最后编辑: wilson 编辑于2010/04/02 21:26
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]