收藏
回答

wx.join1v1Chat接收者那边语音提示怎么监听,接受者的操作怎么监听?

wx.join1v1Chat({

            //拨打

            caller: {

                nickname: wxLoginInfo.nickname,

                openid: wxLoginInfo.openid,

            },

            // 接听

            listener: {

                nickname: '9898',

                openid: 'o-euQ5WvGvvf0a_GNDTwHru3Edfo',

            },

            // 语音

            roomType: "voice",

            success: (res) => {

                wx.hideLoading()

                console.log(res);

            },

            fail: (err) => {

                console.log(err);

                wx.hideLoading()

                wx.showToast({

                    title: '拨打失败',

                    icon: 'error',

                    duration: 2000

                })

            },

        })


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