4***@qq.com
4***@qq.com
  • 发布:2024-01-25 10:37
  • 更新:2024-01-25 10:37
  • 阅读:143

LivePusher 不能在ios下全屏底部会留白条

分类:HTML5+

plus.navigator.setStatusBarStyle('light')
pusher = new plus.video.LivePusher('pusher', {
mode: 'FHD',
muted: true,
'auto-focus': localStorage.autoFocus == 'false'? false : true,
aspect: aspect < 0.5 ? '' : '9:16'
})
setTimeout(() => {
pusher.preview()
},1000)

             pusher.addEventListener('error', function(e) {  
                console.log(JSON.stringify(e.detail))  
             }, false)  

            ws = plus.webview.currentWebview()  
            var sceneId = ws.sceneId,  
                status = ws.status  

            var subpage = plus.webview.create('livetool.html', 'livetool.html', {  
                top: 0,  
                bottom: 0,  
                background: 'transparent'  
            }, {  
                sceneId,  
                status  
            })  
            ws.append(subpage)
2024-01-25 10:37 负责人:无 分享
已邀请:

要回复问题请先登录注册