挂断通话

params 参数说明:

参数 类型 必填 说明 最低版本
conversationType Number 通话类型 3.0.0
targetId String 目标 id 3.0.0

代码示例:

var targetId = 'user1';
var params = {
  conversationType: RongIMLib.ConversationType.PRIVATE,
  targetId: targetId
};
rongCallLib.hungup(params, function(error){
  if (error) {
    console.error('挂断通话失败', error);
  }
});