- app可以跳转到小程序吗?
app可以跳转至小程序某个页面吗
2019-05-16 - 小程序 video 加载不出来
[图片] [图片] 单独的video引入地址。视频是可以加载出来并且播放的。但是通过请求地址,遍历循环出来的视频列表。完全加载不出来。并且也播放不了。 - 需求的场景描述(希望解决的问题) - 希望提供的能力
2019-05-18 - InnerAudioContext怎么播放本地文件
play:function(){ var music = wx.createInnerAudioContext(); music.src ='F:\音乐\Butter-Fly_和田光司.flac'; music.play(); } 这样播放不出来
2019-05-18 - 有关在小程序中下载上传至腾讯云资源的视频
现在有开发一个项目 其中有个功能是视频下载 但是这个视频是上传至购买的腾讯云资源里头 这个每次上传地址都不同.无法添加到小程序的授权域名中 不添加的话. 播放可以正常播放 每次下载都是显示报错.不在合法域名内 这个该怎么解决呀
2019-05-18 - video在全屏播放结束后,没有关闭或返回按钮
[图片] 如图,在安卓真机上,video组件全屏播放时到结束时,只有中间播放按钮能点,没有任何退出全屏的操作。 特别是对于全屏手机的用户来说,就卡在这个画面不知如何操作了。 机型:测试了小米8, 小米mix2, 华为p20 微信版本:7.0.4 代码片段用的就是官方video的例子。
2019-05-15 - 视频组件,第一个不暂停的话下一个就无法正常播放
- 当前 Bug 的[图片] 表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo 视频组件,第一个不暂停的话下一个就无法正常播放 Page({ data: { items: [], allspurl: [], currentTab: '0', id:'', fspurl:'', fspid:'', keyy: '0', allspid:[], plr:[], plsj:[], plnr:[], plhf:[], fsdpl:'' }, onLoad: function () { this.setData({ id: wx.getStorageSync('id') }) this.setData({ fspid: wx.getStorageSync('fspid') }) this.getfspurl() this.getallspm() this.getallspurl() this.getallspid() this.getplr(this.data.fspid) this.getplsj(this.data.fspid) this.getplnr(this.data.fspid) this.getplhf(this.data.fspid) wx.setNavigationBarTitle({ title: getApp().globalData.gbkcm//页面标题为路由参数 }) }, xzsp:function(e){ var index = parseInt(e.currentTarget.dataset.index); this.setData({ fspurl: this.data.allspurl[index] }) this.setData({ fspid: this.data.allspid[index] }) this.setData({ keyy: index }) this.videoContext = wx.createVideoContext('{{keyy}}') this.getplr(this.data.fspid) this.getplsj(this.data.fspid) this.getplnr(this.data.fspid) this.getplhf(this.data.fspid) }, plf: function (e) { this.data.fsdpl = e.detail.value}, anfspl:function(){ if (this.data.fsdpl.length==0){ wx.showToast({ title: '请输入评论内容', icon: 'none', duration: 2000//持续的时间 }) }else{ var that = this wx.request({ url: getApp().globalData.gburl +"fspl/" +that.data.id +'?index='+this.data.fspid+'&&plnr='+that.data.fsdpl+'&&num='+getApp().globalData.gbnum, method: 'POST', success: function (res) { if (res.data == 1) { wx.showToast({ title: '发送成功', icon: 'none', duration: 2000//持续的时间 })} } }) } }, getallspid: function () { var that = this wx.request({ url: "http://m.cn/allspid/" + that.data.id, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.allspid[i] = res.data[i]; that.setData({ allspid: that.data.allspid }) } } }) }, getallspurl: function () { var that = this wx.request({ url: "http://m.cn/allspurl/" + that.data.id, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.allspurl[i] = res.data[i]; that.setData({ allspurl: that.data.allspurl }) } } }) }, getplr: function (spid) { var that = this wx.request({ url: "http://m.cn/plr/" + that.data.id +'?index='+spid, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.plr[i] = res.data[i]; that.setData({ plr: that.data.plr }) } } }) }, getplsj: function (spid) { var that = this wx.request({ url: "http://m.cn/plsj/" + that.data.id + '?index='+spid , method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.plsj[i] = res.data[i]; that.setData({ plsj: that.data.plsj }) } } }) }, getplnr: function (spid) { var that = this wx.request({ url: "http://m.cn/plnr/" + that.data.id + '?index='+spid, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.plnr[i] = res.data[i]; that.setData({ plnr: that.data.plnr }) } } }) }, getplhf: function (spid) { var that = this wx.request({ url: "http://m.cn/plhf/" + that.data.id + '?index=' + spid, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.plhf[i] = res.data[i]; that.setData({ plhf: that.data.plhf }) } } }) }, getallspm: function () { var that = this; wx.request({ url: "http://m.cn/allspm/"+that.data.id, method: 'GET', success: function (res) { for (var i = 0, len = res.data.length; i < len; i++) { that.data.items[i] = res.data[i]; that.setData({ items: that.data.items }) } } }) }, bindChange: function (e) { var that = this; that.setData({ currentTab: e.detail.current }); }, switchNav: function (e) { var page = this; var index = e.target.dataset.current; if (this.data.currentTab == index) { return false; } else { page.setData({ currentTab: index }); } }, onReady: function (res) { this.videoContext = wx.createVideoContext('{{keyy}}') }, videoErrorCallback: function (e) { console.log('视频错误信息:'); console.log(e.detail.errMsg); }, onPullDownRefresh: function () { wx.showNavigationBarLoading() //在标题栏中显示加载 this.setData({keyy:0}) this.onLoad() //模拟加载 setTimeout(function () {// complete wx.hideNavigationBarLoading() //完成停止加载 wx.stopPullDownRefresh() //停止下拉刷新 }, 800); }, getfspurl:function(){ var that=this wx.request({ url: 'http://m.cn/fspurl/' + this.data.id, method: 'GET', success: function (res) { if (res.data) { that.setData({ fspurl: res.data }) } else { wx.showToast({ title: '该课程暂无视频', icon: 'none', duration: 2000 }) wx.setStorage({ key: "fspurl", data: null }) } } }) } }) wxml <view class="videorq"> <video id="{{keyy}}" src="{{fspurl}}" binderror="videoErrorCallback" custom-cache="{{false}}"></video> </view> <view class="menu"> <view class="{{currentTab==0?'select':'default'}}" data-current="0" bindtap="switchNav">视频列表</view> <view class="{{currentTab==1?'select':'default'}}" data-current="1" bindtap="switchNav">评论</view> </view> <view class="line"> </view> <swiper current="{{currentTab}}" style="height:1800px;" bindchange="bindChange"> <swiper-item> <include src="shipin.wxml" /> </swiper-item> <swiper-item> <include src="pinglun.wxml" /> </swiper-item> </swiper> shipin.wxml <view class="tr" wx:for = "{{items}}" wx:for-index="index" wx:for-item="item" wx:key="" data-index='{{index}}' style='{{keyy==index?"color:#05CF8C;":""}}'bindtap='xzsp'> <text class="td" >{{item.name}}</text> </view >
2019-05-17 - live-player渲染失败
[图片] [图片] 是个人没法开启 直播流嘛? 接口设置里面根本就开不了,显示未符合开通条件
2019-05-17 - 重装微信后第一次使用live-player组件播放失效,无错误信息
- 当前 Bug 的表现(可附上截图) 重装微信后第一次使用live-player组件播放失效,无错误信息;之后再使用恢复正常 - 预期表现 重装微信后live-player组件播放正常 - 复现路径 重装微信,第一次打开官方的小程序腾讯视频云就能复现,之后再使用恢复正常 - 提供一个最简复现 Demo 腾讯视频云
2019-05-20 - IOS切换tab页时 live-player 拉流被挂起不能恢复
- 当前 Bug 的表现(可附上截图) 如图: 使用 live-player 进行rtmp直播推流时 1,如果tab页默认选中直播页,开始进行播放。 2,在切换tab页面,通过监听 bindstatechange 实现得到提示 {code: 6000, message: "拉流被挂起"} 3,重新切换tab页到原来直播页,直播不能恢复 (ios问题,安卓ok), 手动调用 resume 方法也无法恢复 4,经测试,如果tab默认选中的是直播页有此问题,如果tab默认选中的不是直播页则没有此问题 a, 切换tab页时被挂起 [图片] b, 切换tab重新返回时iOS画面不能恢复(视频和声音都没有了), 安卓没有此问题 [图片] - 预期表现 tab进行页面切换时,返回直播视频页时视频应该被恢复播放 - 复现路径 多个tab页面切换,默认选中直播页,再其他tab页之后,重新切换回来视频不能恢复 - 提供一个最简复现 Demo
2019-05-16 - wx.requestPayment支付之前一定要先调用一下wx.login吗
如果用户之前登陆过,token没有过期,所以并没有走wx.login重新登陆,这时候直接调用wx.requestPayment支付可以吗,还是必须得走一下wx.login?
2019-05-15