首页 新闻 赞助 找找看

有人用远古webplayer播放器做过网页视频播放吗?进来

0
悬赏园豆:50 [待解决问题]

 

怎么把视频文件加载到嵌入在网页里的远古webplayer播放器中播放啊?以下是html代码,但不知道怎么把文件加载进去播放,请大侠教教啊。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>

111

<table align="center" cellspacing="0" cellpadding="0" width="100%" border="0">
  <tr>
    <td align="center" valign="middle">
      <object id="WebPlayer" width="1024" height="768" classid="CLSID:AA899B43-24BD-4B6B-BBD0-45557D8D11E0" VIEWASTEXT>
  <param name="Filename" value="file:..Users/wsw/Desktop/viewgood/2JavaScript.avi">
        <param name="_Version" value="65536">
        <param name="_ExtentX" value="10583">
        <param name="_ExtentY" value="10583">
        <param name="_StockProps" value="0">
      </object>
    </td>
  </tr>
</table>

<script language="JScript">
x = CheckPlayer();
function PlayerInit(szServerHost)
{
WebPlayer.ServerMode = "2";
WebPlayer.UserName = "!GUEST";
WebPlayer.UserID = "2";
WebPlayer.PlayMode = "1"; //SendType
WebPlayer.PlayModeValue = "39"; //MultiIP_Addr
WebPlayer.ChannelID = "39";
WebPlayer.AuthenHost = GetHostName(this.location.href) + ":" + GetHostPort(this.location.href);
WebPlayer.ServerHost = "1.1.1.1"; //IpAddr
WebPlayer.Session = ""; //"";
WebPlayer.ProtocolType = "1";
WebPlayer.EmbedMode = "1";
WebPlayer.ProgName = "吴建波个人影集 - 第 0 集";

WebPlayer.ContorlWidth  = 322;
WebPlayer.ContorlHeight = 320;
WebPlayer.Start();
}

function RestorePlayerWindow(iWidth, iHeight)
{
window.resizeTo(iWidth, iHeight);
availWidth = screen.Width;
//availWidth = iWidth;
availHeight = screen.availHeight;
//availHeight = iHeight;
iTmpPix = availWidth - iWidth;
iWinLeft = iTmpPix / 2;
iTmpPix = availHeight - iHeight;
iWinHeight = iTmpPix / 2;
window.moveTo(iWinLeft, iWinHeight);
}

function GetHostName(szUrl)
{
iNameSize = szUrl.indexOf("/", 7) - 7;
szUrl = szUrl.substr(7, iNameSize);
if(szUrl.indexOf(":") > 0)iNameSize = szUrl.indexOf(":");
szHostName = szUrl.substr(0, iNameSize);
return szHostName;
}

function GetHostPort(szUrl)
{
var szHostPort, iPortPos, iPortSize;

if(szUrl.indexOf(":", 5) > 0)
{
iPortPos = szUrl.indexOf(":", 5) + 1;
if(szUrl.indexOf("/", iPortPos) > 0)iPortSize = szUrl.indexOf("/", iPortPos) - iPortPos;
szHostPort = szUrl.substr(iPortPos, iPortSize);
}
else
{
szHostPort = 80;
}
return szHostPort;
}

function CheckPlayer()
{
try
{
var oTest = new ActiveXObject("VGPlayer.WebVGPlayer.1");
}
catch(e)
{
if(window.opener == undefined)
{
window.alert("首次点播将安装播放器插件...");
window.open("../download/WebPlayer.exe");
history.back(-1);
}
else
{
window.opener.alert("首次点播将安装播放器插件...");
window.opener.open("../download/WebPlayer.exe");
self.close();
}
return false;
}
delete oTest;

PlayerInit("1.1.1.1");
//RestorePlayerWindow(334, 352);
return true;
}

function GetServerHost()
{
szServerHost = "";
if(szServerHost.length == 0)
{
alert("\n对不起,服务器集群负荷已满或您的地址不在服务范围内!");
self.close();
}

if(szServerHost == "-1")szServerHost = GetHostName(this.location.href) + ":80";
return szServerHost;
}
</script>



</body>
</html>
 
wangsuiwei的主页 wangsuiwei | 初学一级 | 园豆:152
提问于:2013-04-23 16:42
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册