现在还有有卓机型也是遇到这种问题,点击浮窗回到前台后,浮窗不消失
使用live-player和live-pusher,切后台后有麦克风的浮窗,点击浮窗之后浮窗不消失使用live-player组件和live-pusher组件进行语言视频通话,切后台会出现带有一个麦克风图标的浮窗,点击浮窗可以切回来但是浮窗不会消失,如图所示 [图片]
2022-09-08请问解决了么。22年了,我遇到了这个问题
【bug】live-player设置src后调用play方法无效live-player设置src后直接调用play方法,在真机下无法播放,bindstatechange也没有被触发, demo代码: <live-player src="{{liveSrc}}" mode="live" id="live" bindstatechange="statechange" /> Page({ data: { liveSrc: '' }, onReady() { const that = this; this.player = wx.createLivePlayerContext('live'); this.setData({ liveSrc: 'rtmp://pull102.lizhi.fm/home/1591c13309c866a963ede100cb0321a4' }, () => { that.player.play(); }); } }) 以上代码不会播放,但是如果延迟play的调用,就可以正常播放: Page({ data: { liveSrc: '' }, onReady() { const that = this; this.player = wx.createLivePlayerContext('live'); this.setData({ liveSrc: 'rtmp://pull102.lizhi.fm/home/1591c13309c866a963ede100cb0321a4' }, () => { setTimeout(() => { that.player.play(); }, 1000); }); } })
2022-06-20