你的问题解决了吗
如果解决wx.joinVoIPChat 和voip-room 无法调取视频画面的问题?急急急1、小程序后台的权限已开通 [图片] 2、签名问题已解决。可以正常使用 3、已授权 scope.camera 和 scope.record 4、通过voip-room渲染的时候,出不来画面 wx.joinVoIPChat({ roomType:'video', signature:that.data.sign, nonceStr:that.data.nonceStr, timeStamp:that.data.timeStamp, groupId:that.data.groupId, success:res=>{ // console.log("sucess:"+res) that.setData({ openIdList: res.openIdList, }) console.log("openid_list:"+res.openIdList) },fail:err=>{ console.log("失败:"+err.errMsg) } }) 模板 <block wx:for="{{openIdList}}" wx:key="*this"> <voip-room class="dev" openid="{{item}}" mode="{{selfOpenId === item ? 'camera' : 'video'}}"> </voip-room> </block>
2021-01-13有的地址可以有的不可以什么鬼 腾讯这个就可以 http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400
video组件 MEDIA_ERR_SRC_NOT_SUPPORTED使用了小程序video组件, 这个地址 https://connect-cdn-prd-cn.unitychina.cn/20190530/videos/0ca3f3b3-2e35-4805-8796-ea67f931f830_20190529_HDRP_PostProcessing.mp4 的视频 在andorid小程序上播放没问题, ios 小程序上播放报上面错误 MEDIA_ERR_SRC_NOT_SUPPORTED , ios 浏览器直接打开也可以正常播放
2020-08-24怎么解决的?
usingComponents 引入页面onLoad未执行- 当前 Bug 的表现(可附上截图) usingComponents 引入页面onLoad未执行 - 预期表现 onLoad: function(options) { console.log(111112); }, - 复现路径 /pages/landlord/myHouse/myHouse - 提供一个最简复现 Demo index.wxml [代码]<[代码][代码]myHouse[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'myHouse'}}"[代码][代码]></[代码][代码]myHouse[代码][代码]>[代码][代码]<[代码][代码]contract[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'contract'}}"[代码][代码]></[代码][代码]contract[代码][代码]>[代码][代码]<[代码][代码]houseControl[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'houseControl'}}"[代码][代码]></[代码][代码]houseControl[代码][代码]>[代码][代码]<[代码][代码]rent[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'rent'}}"[代码][代码]></[代码][代码]rent[代码][代码]>[代码][代码]<[代码][代码]personal[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'personal'}}"[代码][代码]></[代码][代码]personal[代码][代码]>[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"cu-bar tabbar shadow foot"[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"myHouse"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/myHouse{{PageCur=='myHouse'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]" {{PageCur=='myHouse'?'text-green':'text-bar'}}"[代码][代码]>我的房屋</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"contract"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/contract{{PageCur=='contract'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='contract'?'text-green':'text-bar'}}"[代码][代码]>合同管理</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"houseControl"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/houseControl{{PageCur=='houseControl'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='houseControl'?'text-green':'text-bar'}}"[代码][代码]>房控</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"rent"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/rent{{PageCur=='rent'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='rent'?'text-green':'text-bar'}}"[代码][代码]>收租</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"personal"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/personal{{PageCur=='personal'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='personal'?'text-green':'text-bar'}}"[代码][代码]>个人中心</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码]</[代码][代码]view[代码][代码]>[代码]index.json引入相关页面 [代码]{[代码][代码] [代码][代码]"usingComponents"[代码][代码]: {[代码][代码] [代码][代码]"myHouse"[代码][代码]: [代码][代码]"/pages/landlord/myHouse/myHouse"[代码][代码],[代码][代码] [代码][代码]"contract"[代码][代码]: [代码][代码]"/pages/landlord/contract/contract"[代码][代码],[代码][代码] [代码][代码]"houseControl"[代码][代码]: [代码][代码]"/pages/landlord/houseControl/houseControl"[代码][代码],[代码][代码] [代码][代码]"rent"[代码][代码]: [代码][代码]"/pages/landlord/rent/rent"[代码][代码],[代码][代码] [代码][代码]"personal"[代码][代码]: [代码][代码]"/pages/landlord/personal/personal"[代码][代码] [代码][代码]}[代码][代码]}[代码]index.js [代码]const app = getApp();[代码] [代码]Page({[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 页面的初始数据[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]PageCur: [代码][代码]'myHouse'[代码][代码],[代码][代码] [代码][代码]// height: app.globalData.height * 2 + 24,[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 生命周期函数--监听页面加载[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码](options) {[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 页面方法[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]NavChange(e) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]PageCur: e.currentTarget.dataset.cur[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onShareAppMessage() {[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'我的房屋'[代码][代码],[代码][代码] [代码][代码]// imageUrl: '/images/share.jpg',[代码][代码] [代码][代码]path: [代码][代码]'pages/landlord/myHouse/myHouse'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码] [代码]})[代码] 页面如下 当加载页面 myHouse 在myHouse 页面 onLoad方法却未执行 这个是为什么了 如何调用onload呢
2019-12-24