收藏
回答

微信VOIP通话插件的forceHangUpVoip()为什么没能成功关闭通话呢?

async beforeDestroy() {

try {

await wmpfVoip.forceHangUpVoip();

// 挂断完成后执行清理事件

if (this.offVoipEvent) {

this.offVoipEvent(); // 执行事件清理

this.offVoipEvent = null; // 清空事件处理函数

}

} catch (error) {

console.error("Failed to hang up VoIP call:", error);

}

},

回答关注问题邀请回答
收藏
登录 后发表内容