Real Player 网页播放器参数大全

<style type="text/css">
INPUT { font-family:Tahoma;font-size:12px; }
</style>
<body>
  <object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" id="player_1" width="300" height="60" style="display:none;">
    <param name="_ExtentX" value="12383">
    <param name="_ExtentY" value="1667">
    <param name="AUTOSTART" value="0">
    <param name="SHUFFLE" value="0">
    <param name="PREFETCH" value="0">
    <param name="NOLABELS" value="0">
    <param name="SRC" value="http://www.xlone.net/2.rm" ref>
    <param name="CONTROLS" value="StatusBar,ControlPanel">
    <param name="LOOP" value="0">
    <param name="NUMLOOP" value="0">
    <param name="CENTER" value="0">
    <param name="MAINTAINASPECT" value="0">
    <param name="BACKGROUNDCOLOR" value="#000000">
  </object>
<br><input type="button" value="播放" onclick="player_1.DoPlay()">
<input type="button" value="暂停" onclick="player_1.DoPlayPause()">
<input type="button" value="停止" onclick="player_1.DoStop()">
<input type="button" value="静音" onclick="player_1.SetMute((player_1.GetMute()==true)?false:true);">
<input type="button" value="全屏" onclick="player_1.SetFullScreen();">
<input type="button" value="自动播放" onclick="player_1.SetAutoStart((player_1.GetAutoStart()==true)?false:true);">
<input type="button" value="音量+" onclick="i=player_1.GetVolume();i++;player_1.SetVolume(i);"><input type="button" value="音量-" onclick="i=player_1.GetVolume();i--;player_1.SetVolume(i);">
<input type="button" value="循环设置" onclick="i=player_1.GetLoop();player_1.SetLoop(1-i);">
<input type="button" value="循环+" onclick="i=player_1.GetNumLoop();i++;player_1.SetNumLoop(i);"><input type="button" value="循环-" onclick="i=player_1.GetNumLoop();i--;player_1.SetNumLoop(i);">
<input type="button" value="关于" onclick="player_1.AboutBox();">
<input type="button" value="参数" onclick="player_1.EditPreferences();">
<input type="button" value="统计" onclick="player_1.HideShowStatistics();">
<br>
<textarea id="player_status_2" style="overflow:hidden;width:100px;height:550px;border:0px;font-size:12px;font-family:Verdana"></textarea>
<textarea id="player_status_1" style="overflow:hidden;width:300px;height:550px;border:0px;font-size:12px;font-family:Verdana"></textarea>
<script language="javascript">
window.onload = function() {
 document.player_1.SetWantErrors(true);
}
function load1()
{
 with(document.player_1)
 {
  tmp = "音量大小:" + GetVolume();
  tmp = tmp + "\n是否静音:" + GetMute();
  //tmp = tmp + "\n左右声道:" + GetBalance();
  tmp = tmp + "\n自动播放:" + GetAutoStart();
  tmp = tmp + "\n是否循环:" + GetLoop();
  tmp = tmp + "\n循环次数:" + GetNumLoop();
  tmp = tmp + "\n可否播放:" + CanPlay();
  tmp = tmp + "\n可否暂停:" + CanPlayPause();
  tmp = tmp + "\n可否停止:" + CanStop();
  
  tmp = tmp + "\n\n文件路径:" + GetSource();
  tmp = tmp + "\n右键菜单:" + GetEnableContextMenu();
  tmp = tmp + "\n是否有效:" + GetEnableOriginalSize();
  tmp = tmp + "\n打开状态:" + GetStereoState();
  tmp = tmp + "\n播放状态:" + GetPlayState();
  tmp = tmp + "\n位置状态:" + GetPosition() + "|" + GetLength();
  //tmp = tmp + "\n" + GetControls();
  tmp = tmp + "\n总  数:" + GetPacketsTotal();
  tmp = tmp + "\n接 收 到:" + GetPacketsReceived();
  tmp = tmp + "\n修  复:" + GetPacketsOutOfOrder();
  tmp = tmp + "\n丢  失:" + GetPacketsMissing();
  tmp = tmp + "\n在最近30秒不能使用的数据:" + GetPacketsEarly();
  tmp = tmp + "\n延  迟:" + GetPacketsLate();
  tmp = tmp + "\n平  均:" + GetBandwidthAverage();
  tmp = tmp + "\n当  前:" + GetBandwidthCurrent();
  tmp = tmp + "\n带  宽:" + GetConnectionBandwidth();
  tmp = tmp + "\n消息提示:" + GetLastMessage();
  tmp = tmp + "\n版  本:" + GetVersionInfo();
  
  tmp = tmp + "\n\n标  题:" + GetTitle();
  tmp = tmp + "\n艺 术 家:" + GetAuthor();
  tmp = tmp + "\n版  权:" + GetCopyright();
 }
 player_status_1.value = tmp;
 if(arguments.length==0) timer = setTimeout("load1()",100);
}
load1();
</script>
posted @ 2009-02-16 21:43  refuly  阅读(371)  评论(0编辑  收藏  举报