We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macos , start api 添加这个代码, 才可以识别外接摄像头。 // Open the camera device if #available(macOS 10.14, *) { device = AVCaptureDevice.devices(for: .video).first print("--原生初始化设备10.14,device:(device)😆😆---") } else if #available(macOS 10.15, *) { device = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified).devices.first // print("--😆😆原生初始化设备10.15, device:(device)😆😆---") } else { device = AVCaptureDevice.devices(for: .video).first // print("--😆😆原生初始化设备不是device:(device)😆😆---") }
The text was updated successfully, but these errors were encountered:
What bug are you trying to report?
Sorry, something went wrong.
No branches or pull requests
macos , start api 添加这个代码, 才可以识别外接摄像头。
// Open the camera device
if #available(macOS 10.14, *) {
device = AVCaptureDevice.devices(for: .video).first
print("--原生初始化设备10.14,device:(device)😆😆---")
} else if #available(macOS 10.15, *) {
device = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera],
mediaType: .video,
position: .unspecified).devices.first
// print("--😆😆原生初始化设备10.15, device:(device)😆😆---")
} else {
device = AVCaptureDevice.devices(for: .video).first
// print("--😆😆原生初始化设备不是device:(device)😆😆---")
}
The text was updated successfully, but these errors were encountered: