wx.offVoIPChatInterrupted

wx.offVoIPChatInterrupted(function listener)

基础库 2.9.0 开始支持,低版本需做兼容处理

小程序插件:支持,需要小程序基础库版本不低于 2.9.1

微信 Windows 版:支持

微信 Mac 版:支持

相关文档: 多人音视频对话

功能描述

移除被动断开实时语音通话事件的监听函数

参数

function listener

onVoIPChatInterrupted 传入的监听函数。不传此参数则移除所有监听函数。

示例代码

const listener = function (res) { console.log(res) }

wx.onVoIPChatInterrupted(listener)
wx.offVoIPChatInterrupted(listener) // 需传入与监听时同一个的函数对象
posted on 2025-01-08 09:08  AtlasLapetos  阅读(5)  评论(0)    收藏  举报