We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9e436 commit c735813Copy full SHA for c735813
Sources/LiveKit/Support/DeviceManager.swift
@@ -49,20 +49,21 @@ class DeviceManager: Loggable {
49
.builtInTelephotoCamera, // Physical
50
.builtInUltraWideCamera, // Physical
51
]
52
+ #elseif os(macOS)
53
+ deviceTypes = [
54
+ .builtInWideAngleCamera,
55
+ ]
56
+ #endif
57
+
58
// Xcode 15.0 Swift 5.9 (iOS 17)
59
#if compiler(>=5.9)
- if #available(iOS 17.0, *) {
60
+ if #available(macOS 14.0, iOS 17.0, *) {
61
deviceTypes.append(contentsOf: [
62
.continuityCamera,
63
.external,
64
])
65
}
66
#endif
- #else
- deviceTypes = [
- .builtInWideAngleCamera,
- ]
- #endif
67
68
return AVCaptureDevice.DiscoverySession(deviceTypes: deviceTypes,
69
mediaType: .video,
0 commit comments