分享

flvplayer.swf、flv视频播放器使用方法

 示且青春 2013-08-02
<script type="text/javascript"> 
function PlayFlv(filename) { 
var videoname = filename; //视频文件名 
var floder = "video"; //存放Flash视频的文件夹,注意是相对flvplayer.swf文件的位置(images/flvplayer.swf) 
var div = document.getElementById("flvPlayDiv"); 
div.innerHTML = "<img src='images/wait.gif' alt=''>"; //增加等待图片已增加用户体验; 
div.style.display = "none"; 
var result = "<table align='center'><tr><td align='center'><object type='application/x-shockwave-flash' width='470px' height='403px' "; 
result = "data='images/flvplayer.swf?file=" floder "/" filename "'>"; 
result = "<param name='movie' value='images/flvplayer.swf?file=" floder "/" filename "&showfsbutton=true&autostart=true' />"; 
result = "<param name='wmode' value='transparent' />"; 
result = "<param name='quality' value='high' />"; 
result = "<param name='allowfullscreen' value='true' />"; 
result = "</object></td></tr></table> "; 
div.innerHTML = result; 
div.style.display = "inline";//div显示方式 

</script> 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多