mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Working
This commit is contained in:
parent
5040381840
commit
13a2ff0e20
67 changed files with 395 additions and 93 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// WebcamManager.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 19/08/24.
|
||||
//
|
||||
|
|
@ -33,7 +33,7 @@ class WebcamManager: NSObject, ObservableObject {
|
|||
}
|
||||
}
|
||||
|
||||
private let sessionQueue = DispatchQueue(label: "BoringNotch.WebcamManager.SessionQueue", qos: .userInitiated)
|
||||
private let sessionQueue = DispatchQueue(label: "DynamicIsland.WebcamManager.SessionQueue", qos: .userInitiated)
|
||||
|
||||
private var isCleaningUp: Bool = false
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ class WebcamManager: NSObject, ObservableObject {
|
|||
|
||||
let videoInput = try AVCaptureDeviceInput(device: videoDevice)
|
||||
guard session.canAddInput(videoInput) else {
|
||||
throw NSError(domain: "BoringNotch.WebcamManager", code: -1, userInfo: [NSLocalizedDescriptionKey: "Cannot add video input"])
|
||||
throw NSError(domain: "DynamicIsland.WebcamManager", code: -1, userInfo: [NSLocalizedDescriptionKey: "Cannot add video input"])
|
||||
}
|
||||
|
||||
session.beginConfiguration()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue