使用live-pusher组件默认设置为前置摄像头时画面正常,当切换为后置摄像头后,画面十分模糊。
自动对焦默认开启,下面是对应设置代码,切换摄像头是通过switchCamera方法切换。
<live-pusher id="livePusher" ref="livePusher" class="livePusher" :muted="true" :auto-focus="true" :enable-camera="true" :enable-mic="false" :zoom="true" ></live-pusher>
1 个回复
1***@qq.com - 我走路带着风啊
控制自动聚焦的是zoom而不是auto-focus,zoom为true,auto-focus改为false即可自动对焦
————————————————
原文链接:https://blog.csdn.net/qq_63931809/article/details/143841982