手机端浏览器打开了录音权限,怎么监听(缩小浏览器或者切换后台) close释放掉音源啊
rabbitDu28 opened this issue · 2 comments
rabbitDu28 commented
手机端浏览器打开了录音权限,怎么监听(缩小浏览器或者切换后台) close释放掉音源啊
xiangyuecn commented
试试window事件,不过切换标签页面也会触发
window.onblur
window.onfocus
rabbitDu28 commented
试试window事件,不过切换标签页面也会触发 window.onblur window.onfocus
用visibilitychange可以