Post

Replies

Boosts

Views

Activity

Reply to In RPBroadcastSampleHandler not called `processSampleBuffer`
I found out that RPBroadcastSampleHandler does not have a problem directly with CallKit. The problem is that I use AVSampleBufferDisplayLayer to display during a video call. My problem is that if I use AVSampleBufferDisplayLayer.preventsCapture = true, the RPBroadcastSampleHandler extension does not start. I expected from the preventsCapture setting that only that part of the image would not be recorded.  Is it possible to keep this setting while still allowing screen recording to work?
Topic: Media Technologies SubTopic: General Tags:
Mar ’23
Reply to import pdf from url
Try this for download iCloudFile: url.startAccessingSecurityScopedResource() if !FileManager.default.fileExists(atPath: url.path), FileManager.default.isUbiquitousItem(at: url) {                 try FileManager.default.startDownloadingUbiquitousItem(at: url)                 startReadingStatus(for: url) { isSuccess in                     if isSuccess {                         do {                             try FileManager.default.copyItem(at: url, to: LOCAL_URL)                         } catch {                             print(error)                         }                     }                     url.stopAccessingSecurityScopedResource()                 }                 return true             }     internal func startReadingStatus(for url: URL, completion: ((Bool) -> Void)? = nil) {         DispatchQueue.main.async {             Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true, block: { [weak self] (timer) in                 guard let status = self?.downloadStatus(for: url)                 else {                     completion?(false)                     return                 }                 if status == URLUbiquitousItemDownloadingStatus.current {                     timer.invalidate()                     completion?(true)                 }             })         }     }          internal func downloadStatus(for url: URL) -> URLUbiquitousItemDownloadingStatus? {         do {             let attributes = try url.resourceValues(forKeys: [URLResourceKey.ubiquitousItemDownloadingStatusKey])             guard let status: URLUbiquitousItemDownloadingStatus = attributes.allValues[URLResourceKey.ubiquitousItemDownloadingStatusKey] as? URLUbiquitousItemDownloadingStatus             else {                 return nil             }             return status         } catch {             return nil         }     }
Feb ’23
Reply to DNS Resolving Issue with iCloud Private Relay and VPN Connection
I reported the error(FB17001905). Perhaps someone knows an existing solution and can help me.
Replies
Boosts
Views
Activity
Mar ’25
Reply to After unholding CallKit, the audio does not restore.
@Apple any updates? https://developer.apple.com/documentation/callkit/voip-calling-with-callkit When using this demo, the exact same situation occurs. @raosan As stated above, activation failed.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to How to make call kit SDK works with Mac Catalyst VoIP apps?
Hi, I have the same problem. I solved it so that every 10 seconds I display a notification to the user, using which I ring. I couldn't download CallKit. Do you have any other solution?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to UITextView bacground color changed
How can i prevent the black layer from showing?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to In RPBroadcastSampleHandler not called `processSampleBuffer`
I found out that RPBroadcastSampleHandler does not have a problem directly with CallKit. The problem is that I use AVSampleBufferDisplayLayer to display during a video call. My problem is that if I use AVSampleBufferDisplayLayer.preventsCapture = true, the RPBroadcastSampleHandler extension does not start. I expected from the preventsCapture setting that only that part of the image would not be recorded.  Is it possible to keep this setting while still allowing screen recording to work?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to import pdf from url
Try this for download iCloudFile: url.startAccessingSecurityScopedResource() if !FileManager.default.fileExists(atPath: url.path), FileManager.default.isUbiquitousItem(at: url) {                 try FileManager.default.startDownloadingUbiquitousItem(at: url)                 startReadingStatus(for: url) { isSuccess in                     if isSuccess {                         do {                             try FileManager.default.copyItem(at: url, to: LOCAL_URL)                         } catch {                             print(error)                         }                     }                     url.stopAccessingSecurityScopedResource()                 }                 return true             }     internal func startReadingStatus(for url: URL, completion: ((Bool) -> Void)? = nil) {         DispatchQueue.main.async {             Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true, block: { [weak self] (timer) in                 guard let status = self?.downloadStatus(for: url)                 else {                     completion?(false)                     return                 }                 if status == URLUbiquitousItemDownloadingStatus.current {                     timer.invalidate()                     completion?(true)                 }             })         }     }          internal func downloadStatus(for url: URL) -> URLUbiquitousItemDownloadingStatus? {         do {             let attributes = try url.resourceValues(forKeys: [URLResourceKey.ubiquitousItemDownloadingStatusKey])             guard let status: URLUbiquitousItemDownloadingStatus = attributes.allValues[URLResourceKey.ubiquitousItemDownloadingStatusKey] as? URLUbiquitousItemDownloadingStatus             else {                 return nil             }             return status         } catch {             return nil         }     }
Replies
Boosts
Views
Activity
Feb ’23
Reply to This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode.
iOS 15.6 beta: https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15_6-release-notes Known Issues Xcode 13.4 is unable to prepare iOS 15.6 beta devices for development. (93452791) Workaround: Use Xcode 13.3.1.
Replies
Boosts
Views
Activity
May ’22
Reply to Image which has been sent via AirDrop doesn’t offer Open In for my app
iOS and iPadOS
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Playing Dolby Vision 5 HLS on Apple TV
Did you find a solution?
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Apr ’21