如何实现在页面中嵌入播放器

发布日期:2016-06-30 15:10:09    浏览次数:488

    我们在浏览网页的时候,经常会看到有些网页会播放视频,感觉挺高大上的。其实实现起来非常的简单,只需要在页面上嵌入如下代码就搞定了,将参数名称“movie”,和src的路径改成要播放的文件名即可。

<object id="swfPlayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="650" height="650">
      <param name="movie" value="upload/production/34bOOOPICfb.swf" />
      <param name="quality" value="high" /><param name="wmode" value="transparent" />
      <param name="autoplay" value="false" />
      <embed src="upload/production/34bOOOPICfb.swf" name="swfPlayer" autostart="true" allowscriptaccess="sameDomain" swliveconnect="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="650" height="650"></embed>
</object>