flv播放代码

function funflv(filePath)

{

 var htmlContent = "";
            htmlContent += " <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='480'>";
            htmlContent += "<param name='movie' value='../flash/vcastr22.swf' />";
            htmlContent += "<param name='quality' value='high' />";
            htmlContent += "<param name='allowFullScreen' value='true' />";
            htmlContent += "<param name='FlashVars' value='vcastr_file=" + filePath;
            htmlContent += "&IsAutoPlay=1' />";
            htmlContent += "<embed src='../flash/vcastr22.swf' allowFullScreen='true' FlashVars='vcastr_file=" + filePath;
            htmlContent += "&IsAutoPlay=1' quality='high'";
            htmlContent += " pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='480'></embed></object>";

   document.write(htmlContent );

}

说明:filePath为flv的播放地址

../flash/vcastr22.swf 为:播放flv的播放器

猜你喜欢

转载自blog.csdn.net/wlzwcr/article/details/6517796
FLV