html52.com
我爱小程序-开发者交流社区

live-pusher 无法快照的问题

框架类型 问题类型 操作系统版本 手机型号 微信版本
小程序 Bug 所有 所有 第一个问题是所有版本,第二个问题是企业微信版本号为(3.0.20)

@官方 提交2个bug反馈

以下2个问题全部是企业微信端进入小程序后的问题

注:微信端进入小程序没有问题-企业微信进入后出现的问题

1、live-pusher 无法快照的问题 LivePusherContext.snapshot无法快照

2、LivePusherContext.start接口在华为荣耀9e手机下,无法打开摄像头

第一个问题代码如下:

//截图

setSlice: function(){

this.pusher.snapshot('compressed').then(res=>{

console.log(res,'截图ok')

wx.saveImageToPhotosAlbum({

filePath:res.tempImagePath,

success: function(res) {

wx.showToast({

title: '截图已保存到相册'

})

},

fail: function(res){

console.log(res,'保存到相册失败')

}

})

}).catch(err=>{

wx.showToast({

title: '截图失败',

icon: 'none'

})

})

},



第二个问题代码如下:

//开始推流

startPush: function(){

let _this = this;

wx.showModal({

title: '提示',

content: '准备好了吗?',

success: function(res){

if(res.confirm){

_this.pusher.start({

success: function (res) {

_this.setData({

is_push: true

})

_this.startLive();

console.log(res, '开始推流成功')

},

fail: function (err) {

console.log(err, '开始推流失败')

}

});

}

}

})

},

网友回复

社区技术运营专员-娇华:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

王老大: kantu d dodlmid赵壮 en越309283036 n

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付