mui.plusReady(function () {
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)