获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- 小程序里通过requestFullScreen函数让视频自动全屏为啥时好时坏?
我想在小程过requestFullScree频自动
2022-10-31 - LivePlayerContext.requestFullScreen()该API在安卓上调用没反应
https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.requestFullScreen.html ############WXML <live-player class="video" id="player_0" :src="rtmpurl" mode="live" autoplay > </live-player> <button bindtap='fullScreen'>full</button> ##############JS fullScreen() { let ctx = wx.createLivePlayerContext('player_0') ctx.requestFullScreen({ direction: 90, success() { console.log('full success') }, fail() { console.log('full fail') } }) } 真机调试下,调用了全屏API完全没有反应,成功和失败回调都没有走
2022-12-26