Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将默认摄像头扫描仪(后置摄像头)更改为前置摄像头
我认为它将围绕此代码
AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo
什么是最好的解决方案?
谢谢
尝试AVCaptureDevicePositionFront改用。
AVCaptureDevicePositionFront
编辑:(经过一些研究,我也很喜欢这里的答案)在 Xcode 中设置前置摄像头