我已经实现了sinch视频通话,这是我的代码。
@Override
public void onClientStarted(SinchClient sinchClient) {
Log.e(TAG, "started");
callClient = sinchClient.getCallClient();
callClient.addCallClientListener(this);
}
public void initiateCall(String receiverId) {
Call call = callClient.callUserVideo(receiverId);
call.addCallListener(this);
}
但是它总是在调用onCallEnded()
,这里是错误我正在进入
SessionDetails [startTime=1460378041, endTime=1460378049, progressTime=0, establishTime=0, terminationCause=FAILURE,
packetsSent=0, packetsReceived=0, error=SinchError[errorType=OTHER,
code=4000, message='InternalServerError (2228479)',
data={serverCode=2228479, serverMessage=InternalServerError}]]
答案 0 :(得分:0)
我得到了同样的错误它从今天开始才出现我认为它只是在我更改了通知设置之后但它没有,然后我查看了更多细节,我发现我的问题是这两行的原因在我的Localizable.strings文件中
SIN_INCOMING_VIDEO_CALL = "Incoming video call";
SIN_INCOMING_VIDEO_CALL_DISPLAY_NAME = "Incoming video call from %@";
所以我刚刚删除了这两个,并且每件事都适合我,虽然我在查找为什么这些文本行创建了问题,