|
9#
楼主 |
发表于 2014-1-7 11:49:34
|
只看该作者
嗯,麻烦了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>AnyChat for Web SDK Demo</title>
<!-- 加载AnyChat for Web SDK库 -->
<script src="js/swfobject.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="./js/anychatsdk.js" charset="GB2312"></script>
<script language="javascript" type="text/javascript" src="./js/anychatevent.js" charset="GB2312"></script>
<script language="javascript" type="text/javascript" src="./js/advanceset.js" charset="GB2312"></script>
<!-- 加载业务逻辑控制脚本 -->
<script language="javascript" type="text/javascript" src="./js/logicfunc.js" charset="GB2312"></script>
<script type="text/javascript">
/******初始化控件*********/
function initSDK() {
var errorcode=BRAC_InitSDK("0");
if (errorcode == 0) {
BRAC_GetVersion(0);
BRAC_GetVersion(1);
BRAC_GetSDKOptionString(BRAC_SO_CORESDK_BUILDTIME);
loadflash();
}
}
/******加载flex**********/
function loadflash() {
var _ST = new Date().getMilliseconds();
var so = new SWFObject("shipin.swf?_ST=" + _ST, "main", "100%", "190%", "8", "#FFFFFF");
so.addParam("quality", "high");
so.addParam("wmode", "opaque");
so.addParam("allowScriptAccess", "always");
so.addParam("allowFullScreen", "true");
so.useExpressInstall("expressinstall.swf?_ST=" + _ST);
so.write("flashobject");
}
function getSWF(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
function loadBuff() {
getSWF("main").loadBuffEx(myBuf);
}
function BRAC_SetVideoPos1(userid, parentid, videoid) {
alert(BRAC_SetVideoPos(mSelfUserId, GetID("AnyChatRemoteVideoDiv"), "ANYCHAT_VIDEO_LOCAL"));
}
</script>
<link href="./css/demo.css" rel="stylesheet" type="text/css" />
<link href="./css/advanceset.css" rel="Stylesheet" type="text/css" />
</head>
<body onload="initSDK()" style=" font-family:微软雅黑; margin:0;">
<div style="height:100%; width:100%; position:absolute">
<div id="flashobject" style=" float:left; height:50%; width:50%;" ></div>
<div id="AnyChatRemoteVideoDiv" style="width:502px; height:348px; text-align:center; float:right;"></div>
</div>
</body>
</html>
剩下的初始化、登录、传值都是通过flex调用的控件 |
|