|
补充:
@Override
public void OnAnyChatConnectMessage(boolean bSuccess) {
if(bSuccess){
Toast.makeText(VideoHrActivity.this, "链接服务器成功", Toast.LENGTH_SHORT).show();
anyChat.Login("jereli","");
}else{
Toast.makeText(VideoHrActivity.this, "链接视频服务器失败", Toast.LENGTH_SHORT).show();
finish();
}
}
这个是因为登录失败,我就结束当前activity ,然后返回上一次,从上一个再次进入。基本没啥反应。
/**
* 视频服务、初始化
* @return
*/
public AnyChatCoreSDK getAnyChatService(){
if(anyChat == null){
anyChat = AnyChatCoreSDK.getInstance(this);
anyChat.InitSDK(android.os.Build.VERSION.SDK_INT, 0);
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_AUTOROTATION, 1);
}
return anyChat;
}
上面是在appliaction初始化的。
|
|