收藏
回答

微信小程序双人音视频通话提示接听方设备未开启通话选项?

调用wx.setEnable1v1Chat并设置enable: true后调用wx.join1v1Chat呼叫时提示接听方设备未开启通话选项,且双方都开启了麦克风和摄像头的权限。



回答关注问题邀请回答
收藏

3 个回答

  • 0
    0
    01-16

    接听方页面也需要开启

    setEnable1v1Chat({

                  enable: true,


    01-16
    有用 1
    回复 2
    • 丨Lee丨
      丨Lee丨
      01-16
      接听方在页面中开启setEnable1v1Chat({
                    enable: true,
      后就不需要开启wx.join1v1chat的api了对吧
      01-16
      回复
    • 0
      0
      01-16回复丨Lee丨
      对  wx.join1v1chat是拨打
      01-16
      回复
  • 丨Lee丨
    丨Lee丨
    01-16

    wx.setEnable1v1Chat({

                  enable: true,

                  success(res) {

                    console.log(res, 'res')

                    wx.join1v1Chat({

                      listener: {

                        nickname: '接听1',

                        headImage: '',

                        openid: 'oHUL06wY9-V304gzNZGn0AasI3Us', 

                      },

                      caller: {

                        nickname: '呼叫1',

                        headImage: '',

                        openid: 'oHUL063kA6ioZPI6ghBzLgtU64PE', 

                      },

                      success(res) {

                        console.log('[startCallWx]res', res)

                      },

                      fail(err) {

                        console.log('[startCallWx]err', err)

                      }

                    })


                  },

                  fail(err) {

                    console.error("拨通失败", err)

                  }

                })

    openid都是正常的,但呼叫方呼叫时一直提示接听方未开启通话选项

    01-16
    有用
    回复
  • 智能回答 智能回答 该问答由AI生成
    01-16
    有用
登录 后发表内容