I’ve been engaged on a video calling software, for my usecase, I want to present the video of an individual within the name regardless that he has backgrounded my software.
In apple doc, it’s specified that it may be achieved from iOS 16 utilizing isMultitaskingCameraAccessEnabled
by checking isMultitaskingCameraAccessSupported
in AVCaptureSession object
Right here is my code that I used however im unable to indicate video and in data.plist manifest display screen, a number of window is enabled.
How do I present it like how zoom and whatsapp does.
class AVCaptureSessionHelper {
let captureSession = AVCaptureSession()
func startCapturingSession() {
captureSession.beginConfiguration()
if #accessible(iOS 16.0, *) {
if captureSession.isMultitaskingCameraAccessSupported {
captureSession.isMultitaskingCameraAccessEnabled = true
}
}
captureSession.commitConfiguration()
DispatchQueue.international(qos: .background).async {
self.captureSession.startRunning()
}
}
func stopCapturing() {
DispatchQueue.international(qos: .background).async {
self.captureSession.stopRunning()
}
}
}
However its not working. can somebody assist with this?