更新时间:2024-08-22 GMT+08:00
endCall(结束呼叫)
接口描述
结束和其他用户的通话或者来电。
注意事项
有其他用户的通话或者来电。
方法定义
OpenEyeCall.prototype.endCall = function(callid, callbacks)
参数描述
参数名 | 类型 | 可选/必选 | 描述 |
|---|---|---|---|
callid | Number | 必选 | 呼叫ID。 |
callbacks | 必选 | 回调方法。 |

回调方法的入参示例:
{
"description" : "tsdk_end_call",
"result" : 0,
"rsp" : 67539
} 使用示例
function endCall() {
global_openEye_SDK.openEyeCall.endCall(1755709440, { response: onEndCallReponse });
}
function onEndCallReponse(data) {
if (data.result == 0) {
console.error("EndCall success. ");
} else {
console.error("EndCall failed. The ErrorCode is " + data.result);
console.info(data);
}
} 父主题:音视频呼叫

