今天碰到一个客户需要在网站上加放视频文件,当然他的视频文件是他自己提供的。这个需要在网页上实现播放。前些时间我已经通过优酷上传了一些进去,然后通过分享获得了网页代码,直接把代码放置到网页文件中就行了。这样节省大量的空间和带宽。很不错。但是今天天发过来一个文件,上传到优酷编码后播放出来的效果不好。声音和动作有延迟。本地通过播放器放文件没有问题。我想估计是优酷编码的问题。这逼迫我想办法了。幸好他的视频文件不大,占用不了多少空间。通过搜索找到了一个代码,先分享给大家!
<TABLE border=1 width=660>
<TBODY>
<TR>
<TD><EMBED height=267 type=application/x-shockwave-flash align=middle width=320 src=http://player.youku.com/player.php/sid/XNDg2OTEyMDYw/v.swf allowScriptAccess="always" quality="high" allowFullScreen="true"></EMBED></TD>
<TD><EMBED height=267 type=application/x-shockwave-flash align=middle width=320 src=http://player.youku.com/player.php/sid/XNDkwMjg4MzIw/v.swf allowScriptAccess="always" quality="high" allowFullScreen="true"></EMBED></TD></TR>
<TR>
<TD><EMBED height=267 type=application/x-shockwave-flash align=middle width=320 src=http://player.youku.com/player.php/sid/XNDkwMjg2MDc2/v.swf allowscriptaccess="always" quality="high" allowfullscreen="true"></EMBED></TD>
<TD>
<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=320 height=267><PARAM NAME="_cx" VALUE="8466"><PARAM NAME="_cy" VALUE="7064"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="vcastr22.swf?vcastr_file=展望2013.flv"><PARAM NAME="Src" VALUE="vcastr22.swf?vcastr_file=展望2013.flv"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true"><PARAM NAME="AllowFullScreenInteractive" VALUE=""><PARAM NAME="IsDependent" VALUE="0">
<embed src="vcastr22.swf?vcastr_file=展望2013.flv" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="320" height="267"> </embed>
</OBJECT></TD></TR></TBODY></TABLE>
提醒的是大家要下载一个文件 vcastr22.swf 可以到网上下载,本站也有下载!