|
8#
楼主 |
发表于 2014-8-6 15:59:39
|
只看该作者
- if (dwErrorCode == 0) {
- int i[] = anychat.GetOnlineUser();
- if (i.length > 0) {
- dwTargetUserId = i[0];
- }
- if (!flag) {
- dwTargetUserId = dwRoomId;
- }
- Log.d("------------------------------------",
- "status =" + anychat.GetCameraState(dwTargetUserId));
- if (anychat.GetCameraState(dwTargetUserId) != 0) {// 坐席视频正常
- isErrorInRoom = false;
- Bundle bundle = new Bundle();
- bundle.putInt("target_user_id", dwTargetUserId);
- toNextPage(bundle, VideoAuthViewActivity.class);
- MainUIActivity.getMainController().popView();
- } else {
- showAlertDialog("对方尚未连接视频,请重试",
- new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog,
- int which) {
- regist_videotestimony_index = 0;
- get_videotestimony_index = 0;
- serialNum = VideoAuthManager.getInstance()
- .registVideoTestimony();
- tvWait.setText(R.string.video_authing);
- tvInfo.setText("");
- if (!progressBar.isShown()) {
- progressBar.setVisibility(View.VISIBLE);
- }
- }
- }, "重试");
- }
- }
复制代码 |
|