<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>播放器</title>
<style>
body{ text-align:center}
.div{ margin:0 auto; width:800px; height:500px; border:0px solid #F00}
/* css注释:为了观察效果设置宽度 边框 高度等样式 */
</style>
<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"8123",secure:"8124"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
<body data-genuitec-lp-enabled="false" data-genuitec-file-id="wc3-0" data-genuitec-path="/htmlPlayFlv/WebRoot/index.html">
播放测试!
<div class="div" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc3-0" data-genuitec-path="/htmlPlayFlv/WebRoot/index.html">
<!-- Normal content area start -->
<script src="swfobject.js" type="text/javascript"></script>
<p id="player1"></p>
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","single","800","500","7");
s1.addParam("allowfullscreen","true");
s1.addParam("wmode","transparent");
s1.addVariable("file","xiyangyang.flv");
s1.addVariable("image","over.jpg");
s1.addVariable("width","800");
s1.addVariable("height","500");
s1.addVariable("autostart", "yes"); //是否自动播放
s1.write("player1");
</script>
<!-- Normal content area end -->
</div>
</body>
</html>
html播放flv文件一整套源码案例
需积分: 44 13 浏览量
2017-10-26
09:46:25
上传
评论 2
收藏 6.64MB ZIP 举报
cycnancy
- 粉丝: 1
- 资源: 5