网页播放器代码

jackxiang 2009-9-22 21:12 | |
step的:

function ChangeMV(vid,width,height,auto)
{
  var w,h;
  w=147;h=117;
  if(width)w=width;
  if(height)h=height;
  var a=0;
  if(auto)a=1;
  var v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w+'" height="'+h+'">                        <param name="movie" value="http://cache.tv.qq.com/qqplayerout.swf" />                        <param name="allowFullScreen" value="true" />                        <param name="flashvars" value="f=3&vid='+vid+'&auto='+a+'"  <param name="wmode" value="transparent" />                        <embed type="application/x-shockwave-flash" src="http://cache.tv.qq.com/qqplayerout.swf" width="'+w+'" height="'+h+'" id="flashplayer" quality="high" allowScriptAccess="sameDomain" allowFullScreen="true" flashvars="vid='+vid+'&auto='+a+'" wmode="transparent"></embed>                    </object>';  
  return v;
}




dc的:

function bofang(url)
{
var brodcast = '<object name="wmplayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"  codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" type="application/x-oleobject" width=328 height=220 hspace="0" standby="Loading Microsoft Windows Media Player components..." id="NSPlay">    <param name="AutoRewind" value=0>    <param name="FileName" value="http://newalto.qq.com/data/'+url+'">    <param name="ShowControls" value="1">    <param name="ShowPositionControls" value="0">    <param name="ShowAudioControls" value="1">    <param name="ShowTracker" value="0">    <param name="ShowDisplay" value="0">    <param name="ShowStatusBar" value="1">    <param name="ShowGotoBar" value="0">    <param name="ShowCaptioning" value="0">    <param name="AutoStart" value="1">    <param name="Volume" value="2000">    <param name="AnimationAtStart" value="0">    <param name="TransparentAtStart" value="0">    <param name="AllowChangeDisplaySize" value="1">    <param name="AllowScan" value="0">    <param name="EnableContextMenu" value="0">    <param name="ClickToPlay" value="0"></object>';
document.getElementById('video_img_panel').innerHTML = brodcast;
}


作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/1982/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]