|
您好, 我今天在测试自带的demo AnyChatFeature时候 在服务器端的代码中修改如下:
/**
* 视频呼叫事件回调,客户端调用API:BRAC_VideoCallControl会触发该回调
*/
public int OnAnyChatVideoCallEventCallBack(int dwEventType, int dwSrcUserId, int dwTarUserId, int dwErrorCode, int dwFlags, int dwParam, String lpUserStr) {
System.out.println("OnAnyChatVideoCallEventCallBack called");
String str = "OnAnyChatVideoCallEventCallBack: dwEventType:" + dwEventType + " dwSrcUserId:" + dwSrcUserId +
" dwTarUserId:" + dwTarUserId + " dwErrorCode:" + dwErrorCode + " dwFlags:" + dwFlags + " dwParam:" + dwParam + " lpUserStr:" + lpUserStr;
System.out.print(getCurrentTime() + str + "\r\n");
return 0;
}
然后A和B客户端相互发起视频功能, 视频通讯是正常的, 但是看服务器端的输出时 , 并没有OnAnyChatVideoCallEventCallBack called的输出.. 这是为什么呢?
服务器端使用的是自带的demo AnyChatCallCenter4SpringMVC, 难道A和B视频通讯是直接通讯而不需要经过服务器的吗? |
|