
superGood
- 发布:2021-11-03 15:00
- 更新:2023-03-27 17:12
- 阅读:1256

技术部一哥 - 一个热爱前端开发的小菜鸟
判断平台然后调用switchCamera切换摄像头就可以!
具体代码:
const livePusher = uni.createLivePusherContext('livePusher', this)
switch (plus.os.name) {
case 'Android':
break;
case 'iOS':
livePusher.switchCamera()
break
}
大致就这样。。。
橘子侠
嗯3Q是的我后面就是永这种方式处理的
2023-03-27 23:08