我正在使用quickblox api进行1对1的视频聊天,但是我不知道OnVideoChatChangeState()
类的用法OnQBVideoChatListener()
以及事件被调用后发生的变化。我已经修改了代码,但是视频无法启动点击功能,但无法转到:
` public void onVideoChatStateChange(CallState state, VideoChatConfig receivedVideoChatConfig) {
videoChatConfig = receivedVideoChatConfig;
isCanceledVideoCall = false;
Toast.makeText(getApplicationContext(), "switch", Toast.LENGTH_LONG).show();
switch (state)
{
case ON_CALLING:
Toast.makeText(getApplicationContext(), "After this the showCallDialog() will be called.", Toast.LENGTH_LONG).show();
showCallDialog();
break;
case ON_ACCEPT_BY_USER:
progressDialog.dismiss();
startVideoChatActivity();
break;
case ON_REJECTED_BY_USER:
progressDialog.dismiss();
break;
case ON_DID_NOT_ANSWERED:
progressDialog.dismiss();
break;
case ON_CANCELED_CALL:
isCanceledVideoCall = true;
videoChatConfig = null;
break;
case ON_START_CONNECTING:
progressDialog.dismiss();
startVideoChatActivity();
break;
default:
break;
}
}
};
`
并且未调用
showCallDialog();
方法,这表明事件未在此处发生。所以我想知道事件是否会发生,以便调用方法。
最佳答案
此问题已解决。 Master分支已更新。请尝试download并再次使用该示例。
关于android - Quickblox中OnVideoChatChangeState()的用法,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22350317/