小游戏实时语音中断如何恢复?

发布于 7 年前作者 zhaoxia4064 次浏览最后编辑 7 年前来自 issues

//监听通话中断(监听被动断开实时语音通话事件。包括小游戏切入后端时断开)

    onVoIPChatInterrupted(){

        let self = this;

        wx.onVoIPChatInterrupted((res)=>{

            cc.log(‘onVoIPChatInterrupted’,res);

        })

    }

监听到有用户切到后台,断开连接。怎么恢复连接呢?网上没找到解决方案

1 回复
jiehao
jiehao1 楼5 年前

重新加入房间