页面中使用flash播放器

来源:互联网 发布:游戏app制作软件 编辑:程序博客网 时间:2024/09/21 09:05

<embed
  flashvars="file=<%=basePath %>images/video/babybel.flv"
  allowfullscreen="true"
  allowscripaccess="always"
  id="player1"
  name="player1"
  src="images/video/mediaplayer.swf"
  width="480"
  height="270"
  type="application/x-shockwave-flash"
/>

 

将以上内容拷贝到页面中即可,flashvars="file=<%=basePath %>images/video/babybel.flv",就是你要播放的文件

allowfullscreen="true"设置是否可以全屏播放

 src="images/video/mediaplayer.swf"是播放文件加载时播放的

type="application/x-shockwave-flash"表示播放文件的类型

 

.... .... 还有其它更多参数,读者自己去研究吧。