|
板凳
楼主 |
发表于 2014-6-27 09:32:54
|
只看该作者
function LogicInit() {
var NEED_ANYCHAT_APILEVEL = "0"; // 定义业务层需要的AnyChat API Level
var errorcode = BRAC_InitSDK(NEED_ANYCHAT_APILEVEL); // 初始化插件
if (errorcode == GV_ERR_SUCCESS) {
BRAC_SetSDKOption(BRAC_SO_AUDIO_VADCTRL, 0);
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_QUALITYCTRL,3);
BRAC_SetSDKOption(BRAC_SO_SNAPSHOT_TMPDIR, "D:\\AnychatImg\\");
BRAC_SetSDKOption(BRAC_SO_RECORD_TMPDIR, "D:\\AnychatVideo\\");
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_APPLYPARAM, 1);
alert(BRAC_GetSDKOptionString(BRAC_SO_SNAPSHOT_TMPDIR));
var chatVersion = "1.0.0.7" ;
if(BRAC_GetVersion(0) != chatVersion){
installview(GV_ERR_PLUGINOLDVERSION);//GV_ERR_PLUGINOLDVERSION
}else{
installview(GV_ERR_SUCCESS);
}
}else{
installview(GV_ERR_PLUGINNOINSTALL);
}
这是我的代码 , 感觉没生效, 100次会有那么一次生效 不清楚具体是什么原因~~
} |
|