已解决
live-pusher安卓版微信无法推流音视频流[图片] 图上所示,只出现两个状态码,连摄像头都没有打开 <!--推流--> <view class="live-player"> <live-pusher url="{{livePlayerUrl}}" id="player" autopush mode ="HD" enable-camera="{{true}}" bindstatechange="stateLiveChange"></live-pusher> </view>
2019-01-21能看下你的代码片段嘛
部分安卓手机使用小程序腾讯视频云-视频通话功能,插入耳机后仍然使用扬声器播放- 当前 Bug 的表现(可附上截图) 部分安卓手机使用小程序腾讯视频云-视频通话功能,插入耳机仍然使用扬声器播放 - 预期表现 使用耳机设备播放 - 复现路径 腾讯视频云,进入视频通话,华为honor9,华为nova2s,红米note5等
2019-01-21我也是这么做的,但是安卓手机还是没反应,打不开 摄像头,后台收不到推流数据,不知道为什么,ios则可以, <live-pusher url="{{livePlayerUrl}}" id="player" autopush mode ="HD" enable-camera="{{true}}" bindstatechange="stateLiveChange"></live-pusher>
live-pusher 安卓手机提推流失败,iOS可以- 当前 Bug 的表现(可附上截图)[图片] - 预期表现 [图片] - 复现路径 - 提供一个最简复现 Demo wxml: <live-pusher id="livePusher" url="{{pushUrl}}" mode="RTC" bindstatechange="pusherStateChange" binderror="onPushError" enable-camera="{{false}}" beauty="6" class="invisible"></live-pusher> js: onReady: function () { console.log('>>>on ready') var self = this; this.createPushContext(self); this.createPlayContext(self); wx.setKeepScreenOn({ keepScreenOn: true, }) }, //初始化推流 createPushContext: function (self) { console.log('>>> push create context'); var context = wx.createLivePusherContext('livePusher', self); this.setData({ pushVideoContext: context }) }, //推流 startPush: function(url){ console.log('>>> start pushing'); var that = this; that.setData({ pushUrl: url }, function () { that.data.pushVideoContext.start(); }) }, //停止推流 stopPush: function(){ console.log('>>> stop pushing'); var that = this; that.setData({ isPushing: false, }, function () { that.data.pushVideoContext.stop(); }) }, pusherStateChange: function (e) { console.log('>>> live-pusher onPushStateChange:', e.detail.code); if (e.detail.code == -1307) { this.stopPush(); wx.showToast({ title: '-1307,推流失败', }) } else if (e.detail.code == 1007) { wx.hideToast(); // 推流成功 this.setData({ isPushing: true }) } }, onPushError: function (e) { console.log('>>>push error:',e) console.error('>>> live-pusher onPushError:', e.detail.errMsg); this.stopPush(); wx.showToast({ title: '推流失败', icon: 'none' }) },
2019-01-21