- wx.join1v1Chat调用出现-10086错误,问题发现在今天,按日志记录,从8月28之前可用
APP.VUE 里面加了 setup() { console.log("setup -- app.vue"); onLaunch(() => { console.log("setup -- app.vue - onLaunch"); getRoute(); uni.loadFontFace({ family: "PingFang-Sc", source: 'url("https://img.taobit.cn/20210519-1-f80bfb7f429da896f41037c6ad020e2b.ttf")', success: (res) => { console.log("loadFontFace success", res); }, }); wx.setEnable1v1Chat({ enable: true, success: (res) => { console.log("setEnable1v1Chat success", res); }, fail: (res) => { console.log("setEnable1v1Chat fail", res); }, }); }); 业务代码里面使用了 wx.join1v1Chat({ caller: { nickname: profile.value.nickName, headImage: profile.value.avatar, openid: profile.value.openId }, listener: { nickname: props.listener.nickName, headImage: props.listener.avatar, openid: props.listener.openId }, backgroundType: 3, // roomType: 'video', roomType: apiUrl.callType, success: (res: any) => { console.log("join1v1Chat success", res); wx.offVoIPChatStateChanged( (res: any) => { console.log(`移除监听, ${res.state}`); } ) wx.onVoIPChatStateChanged((res: any) => { console.log(`房间发生变化, ${res.state}`); }) }, fail: (res: any) => { uni.showToast({ title: '拨打失败,可能对方未打开小程序', icon: 'none', duration: 2500 }) console.log(res) }, complete: (res: any) => { console.log("join1v1Chat complete", res); } }) } 权限也已经配置 "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序定位" }, "scope.record": { "desc": "远程验货视频用于录音" }, "scope.camera": { "desc": "远程验货视频用于视频查验货物信息" } }, 最后调用结果是 join1v1Chat:fail -10086, -5, join room callback failed: 13, 290738557453344500 服务在8月27日及之前可用,有调用记录,代码未动,8.28之后不可用
09-04 - 双人音视频IOS无法加入房间,文档无以下报错代码?
ios拨打才会出现这个问题,安卓可以正常拨打 {"errMsg": "join1v1Chat:fail -10086, -5, join room callback failed: 13, 2907382993226229000", "errCode": -1000} wx.join1v1Chat({ //拨打人 caller: caller, //接听人 listener: listener, //拨打类型(voice语音,video视频) roomType, //视频切换语音 disableSwitchVoice: false, //小窗样式 minWindowType: 1, //窗口背景颜色 backgroundType: 0, success: (res) => { uni.hideLoading() } })
08-28 - 昨晚到现在双人通话一直无法使用
https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.join1v1Chat.html 请求参数: caller: { nickname: HuGe, headImage: https://alanclub.oss-cn-chengdu.aliyuncs.com/1719197405899143.png, openid: ouvLB6-UC41JSiDBALdckanKbEQE, }, listener: { nickname: jack, headImage: http://www.alanclub.cn/public/uploads/2024/tmp_5324db2baf5c66317bf47af2fff161c6acc4055b6c887631.jpg, openid: ouvLB60R2HcT9USHrMW55PnviPiU, } 接口返回参数: {"errMsg":"join1v1Chat:fail: -10086, -5, join room callback failed: 13, 2907385451182343700","errCode":-1000}
09-04