QuickLook Thumbnailing

RSS for tag

Generate thumbnails for common file types and add a Thumbnail Extension to your app using QuickLook Thumbnailing.

Posts under QuickLook Thumbnailing tag

38 Posts

Post

Replies

Boosts

Views

Activity

macOS app rejected for Thumbnail extension continuing to run
I received a rejection for "Your app spawns processes that continue running after the user has quit the app." The process in question is the app's Thumbnail extension. When I remove all of my own code from the thumbnail extension, it still continues to run after I exit my app. This is the entirety of the extension's code, which now renders blank thumbnails: import QuickLookThumbnailing class ThumbnailProvider: QLThumbnailProvider { override init() { } override func provideThumbnail(for request: QLFileThumbnailRequest, _ handler: @escaping (QLThumbnailReply?, Error?) -> Void) { let reply = QLThumbnailReply(contextSize: request.maximumSize) { (context: CGContext) -> Bool in return true } handler(reply, nil) } } Presumably Thumbnail extensions continue to run so that Finder (among others) can generate thumbnails as necessary. AFAIK, I have no direct control over the extension's lifecycle. Is this just App Review's mistake? The "Next Steps" are clueless: "You can resolve this by leaving this option unchecked by default, providing the user the option to turn it on." The app uses its own thumbnail extension to render thumbnails for document templates, which may be an uncommon thing.
1
0
1.3k
Aug ’23
Thumbnail images in iOS / iPadOS slow to update
Question asked during the 6-6-23 UIKit Q&A Slack session of WWDC 2023 My iOS / iPadOS / Catalyst app has a thumbnail extension with a QLThumbnailProvider subclass that implements the provideThumbnail(for:_:) method providing the thumbnail for a document created in my app, by drawing the thumbnail image into the current context. That implementation successfully updates the thumbnail for the document, but sometimes the thumbnail's displayed image (in, for instance, the Files app or my app's own UIDocumentBrowserViewController on iPhone or iPad) is slow to update. (This update slowness seems especially to be a problem for documents stored in iCloud Drive, rather than in local storage.) (1) Am I correct in presuming that the displayed thumbnail images are cached somewhere, and the reason the displayed thumbnail images are slow to update is because either (a) the thumbnail cache is slow to update and/or (b) the system only periodically calls the provideThumbnail(for:_:) method? (2) If so, is there some way my app can either (a) force the thumbnail image cache to update more quickly and/or (b) force the provideThumbnail(for:_:) method to be called, so that the displayed thumbnail images for the created/modified documents are quicker to update?
2
0
1.6k
Jun ’23
NSFileProviderReplicatedExtension + NSFileProviderThumbnailing fetchThumbnails never called
Hello, I am trying to add thumbnails to a replicated file provider extensions but the fetchThumbnails method never gets called. After adding the NSFileProviderThumbnailing protocol and fetchThumbnails method to my class I can see the change in behaviour in Finder when I click on a non materialised item as it displayed an empty space instead of the generic file type icon when the protocol is not added. I noticed the mention of caching based on itemVersion but I would still expect the fetchThumbnails method to be called for all newly enumerated items when Finder is in thumbnail mode ? Thanks,
1
0
1k
May ’23
Quicklook Thumbnailing not working in iOS 16 betas
Our app has a custom file format and implements a Quicklook Thumbnailing extension. In iOS 16 (through to the latest beta 8 release) thumbnails are not generated in the Files app. And also are not returned for calls to QLThumbnailGenerator. Apple's sample app for this shows the same problem: https://developer.apple.com/documentation/uikit/view_controllers/building_a_document_browser_app_for_custom_file_formats I rolled back to iOS 15 to be sure and both our app and Apple's sample work there but fail in iOS 16. The console shows: error 13:34:59.136343-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.136801-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.137602-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137767-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137841-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137948-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.138159-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.138283-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.620873-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.621362-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.622256-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block I filed feedback at the start of August (FB11066418) but have had no response. Is anyone else seeing this issue?
3
1
3.0k
Oct ’22
How to get thumbnail as base64 string (macOS)
I don't know how to make this function to return base64encoded string of thumbnail in jpeg format.     let request = QLThumbnailGenerator         .Request(fileAt: fileURL, size: size, scale: scale,                  representationTypes: .lowQualityThumbnail)     QLThumbnailGenerator.shared.generateRepresentations(for: request)     { (thumbnail, type, error) in         DispatchQueue.main.async {             if thumbnail == nil || error != nil {                 // Handle the error case gracefully.             } else {                 // return the thumbnail as bas64 string. return ...             }         }     } }
1
0
1.3k
Jul ’22
iOS Thumbnail Extension vs Network access
Is it possible to use network from within iOS Thumbnail Extension? I tried - it works fine under simulator, but I'm getting this error when running on real device: networkd_settings_read_from_file Sandbox is preventing this process from reading networkd settings file at "/Library/Preferences/com.apple.networkd.plist", please add an exception. Adding "App Transport Security Settings / Allow Arbitrary Loads" plist entry didn't help. As the error seems to be specific access to a particular file I tried adding "com.apple.security.temporary-exception.files.absolute-path.read-only" but it didn't help and looks like it couldn't help on iOS: "Note: This chapter describes property list keys specific to the macOS implementation of App Sandbox. They are not available in iOS."
3
0
2.8k
Mar ’22
AVAudioEngine crashes Quick Look Preview Extension on iOS 15
Hi, I'm trying to write a Quick Look extension for my iOS app. However, I'm having issues initializing AVAudioEngine in my QLPreviewingController subclass from preparePreviewOfFile. The following error messages are printed to the console after attempting to initialize AVAudioEngine, and the Quick Look Extension crashes with EXC_BAD_ACCESS. The same code works fine within the main iOS app. It also works on macOS inside a Catalyst app on the macOS Monterey RC when previewing a file in the Finder. I've also filed feedback with feedback number FB9713048. Thanks for taking a look at this. Console output: [audiocomp] AudioComponentPluginMgr.mm:545 reg server remote proxy error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159 - Sandbox restriction.} [as] AudioSessionClientManager.cpp:475 Couldn't connect to com.apple.audio.AudioSession Error: 1100; AudioSession will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] GetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: GetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 0 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 44100 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) [avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1344:Initialize: (err = PerformCommand(*outputNode, kAUInitialize, NULL, 0)): error 268435459 [avae] AVAudioEngine.mm:167 Engine@0x2830594d0: could not initialize, error = 268435459 [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 44100 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) [avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1344:Initialize: (err = PerformCommand(*outputNode, kAUInitialize, NULL, 0)): error 268435459 [avae] AVAudioEngineGraph.mm:4631 Can't retrieve source node to play sequence because there is no output node! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] GetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: GetProperty returned server mach error 0x10000003! (lldb)
1
0
1.7k
Nov ’21
Open UIManagedDocument in a QLThumbnailProvider
Hello there, I'm using a combination of UIDocumentBrowserViewController + UIManagedDocument to manage documents, store and sync them with iCloud. Right now I'm trying to add support for thumbnails (custom type) using QuickLookThumbnailing framework. In a subclass of QLThumbnailProvider when trying to open the UIManagedDocument, Xcode returns an error from within thumbnail target: [error]addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (513) Also UIManagedDocument itself throws an error Error Domain=NSCocoaErrorDomain Code=513 "The file couldn’t be saved because you don’t have permission.". The cocoa error 513 is about no writing permissions, but I'm not sure what exactly it's tried to be written. In the thumbnail extension I just init the document with the URL that system send via the system method. Also I do not change anything in the document explicitly. I'm not sure what I'm missing, I took a look over the "Particles" example from Apple engineers, but they are using UIDocumentBrowserViewController and plain UIDocument which works great.
0
0
821
Aug ’21
Dose AR quick look support Mask Material?
Hey! Dose AR quick look support Mask Material? I have seen the the face tracking have face Mask out, which the face will create occlusion for the face. So the object like helmet wont look like just floating over the head. Now I wanted to take that mask material and apply to my other project, like world tracking and image tracking, is this possible? thanks.
0
0
871
Jul ’21
New Quick look not call extension
Testing QL extensions (thumbnail and preview) that I created base on this video. https://developer.apple.com/videos/play/wwdc2019/719 use command like sudo qlmanage -p /path/ELEVATOR.fs -c xxx.xxxxx.xxxxxx.fs -g /path/Preview.appex or sudo qlmanage -t /path/ELEVATOR.fs -c xxx.xxxxx.xxxxxx.fs -g /path/Preview.appex It give me error like this 2021-07-01 13:44:07.991 qlmanage[2278:64986] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa107, name = 'com.apple.coredrag' See /usr/include/servers/bootstrap_defs.h for the error codes. 2021-07-01 13:44:08.005 qlmanage[2278:64986] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8617, name = 'com.apple.tsm.portname' See /usr/include/servers/bootstrap_defs.h for the error codes. not call thumbnail or preview extension
0
2
806
Jul ’21
thumbnail rendering just 6mb?
I'm getting Thread 5: EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=6 MB) My thumbnails do render (and they require more than 6mb to do so), so I wonder about the behavior here. Does the OS try to render thumbnails with a very low memory limit and then retry if that fails?
Replies
0
Boosts
0
Views
771
Activity
Oct ’23
Unable to generate thumbnail for public.image using QLThumbnailProvider in macOS app?
By Apple's documentation, QLThumbnailProvider is used to generate thumbnails for custom file types. However i am trying to use it to generate thumbnails for public.image file type and it is not working. So can we override the system supported thumbnailer using QLThumbnailProvider?
Replies
1
Boosts
0
Views
765
Activity
Sep ’23
macOS app rejected for Thumbnail extension continuing to run
I received a rejection for "Your app spawns processes that continue running after the user has quit the app." The process in question is the app's Thumbnail extension. When I remove all of my own code from the thumbnail extension, it still continues to run after I exit my app. This is the entirety of the extension's code, which now renders blank thumbnails: import QuickLookThumbnailing class ThumbnailProvider: QLThumbnailProvider { override init() { } override func provideThumbnail(for request: QLFileThumbnailRequest, _ handler: @escaping (QLThumbnailReply?, Error?) -> Void) { let reply = QLThumbnailReply(contextSize: request.maximumSize) { (context: CGContext) -> Bool in return true } handler(reply, nil) } } Presumably Thumbnail extensions continue to run so that Finder (among others) can generate thumbnails as necessary. AFAIK, I have no direct control over the extension's lifecycle. Is this just App Review's mistake? The "Next Steps" are clueless: "You can resolve this by leaving this option unchecked by default, providing the user the option to turn it on." The app uses its own thumbnail extension to render thumbnails for document templates, which may be an uncommon thing.
Replies
1
Boosts
0
Views
1.3k
Activity
Aug ’23
Thumbnail images in iOS / iPadOS slow to update
Question asked during the 6-6-23 UIKit Q&A Slack session of WWDC 2023 My iOS / iPadOS / Catalyst app has a thumbnail extension with a QLThumbnailProvider subclass that implements the provideThumbnail(for:_:) method providing the thumbnail for a document created in my app, by drawing the thumbnail image into the current context. That implementation successfully updates the thumbnail for the document, but sometimes the thumbnail's displayed image (in, for instance, the Files app or my app's own UIDocumentBrowserViewController on iPhone or iPad) is slow to update. (This update slowness seems especially to be a problem for documents stored in iCloud Drive, rather than in local storage.) (1) Am I correct in presuming that the displayed thumbnail images are cached somewhere, and the reason the displayed thumbnail images are slow to update is because either (a) the thumbnail cache is slow to update and/or (b) the system only periodically calls the provideThumbnail(for:_:) method? (2) If so, is there some way my app can either (a) force the thumbnail image cache to update more quickly and/or (b) force the provideThumbnail(for:_:) method to be called, so that the displayed thumbnail images for the created/modified documents are quicker to update?
Replies
2
Boosts
0
Views
1.6k
Activity
Jun ’23
NSFileProviderReplicatedExtension + NSFileProviderThumbnailing fetchThumbnails never called
Hello, I am trying to add thumbnails to a replicated file provider extensions but the fetchThumbnails method never gets called. After adding the NSFileProviderThumbnailing protocol and fetchThumbnails method to my class I can see the change in behaviour in Finder when I click on a non materialised item as it displayed an empty space instead of the generic file type icon when the protocol is not added. I noticed the mention of caching based on itemVersion but I would still expect the fetchThumbnails method to be called for all newly enumerated items when Finder is in thumbnail mode ? Thanks,
Replies
1
Boosts
0
Views
1k
Activity
May ’23
Quicklook Thumbnailing not working in iOS 16 betas
Our app has a custom file format and implements a Quicklook Thumbnailing extension. In iOS 16 (through to the latest beta 8 release) thumbnails are not generated in the Files app. And also are not returned for calls to QLThumbnailGenerator. Apple's sample app for this shows the same problem: https://developer.apple.com/documentation/uikit/view_controllers/building_a_document_browser_app_for_custom_file_formats I rolled back to iOS 15 to be sure and both our app and Apple's sample work there but fail in iOS 16. The console shows: error 13:34:59.136343-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.136801-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.137602-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137767-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137841-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.137948-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.138159-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.138283-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block error 13:34:59.620873-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.621362-0700 LocalStorageFileProvider [ERROR] Creating internal error for "startFetchThumbnailOperationOverall", original error was: NSError: Cocoa 3328 "<private>" error 13:34:59.622256-0700 com.apple.quicklook.ThumbnailsAgent Failing <private>, which did not get a per-thumbnail download completion block I filed feedback at the start of August (FB11066418) but have had no response. Is anyone else seeing this issue?
Replies
3
Boosts
1
Views
3.0k
Activity
Oct ’22
What is QLThumbnailErrorDomain Code=110?
Hi, when generating thumbnails I sometimes see the error "QLThumbnailErrorDomain Code=110". This happens to files which can be processed when trying again, so it is not an issue with the files in general. I could not find an error with that code here. Any ideas where to look and/or what causes this? Thanks, Michael
Replies
0
Boosts
0
Views
1.4k
Activity
Aug ’22
Can FileProvider provide the full quicklook experience for PDF's?
For local files, it's an amazing feature to be able to space-bar open a PDF document and quickly swipe through the contents of it. How can I enable this for pdf files stored on a volume exposed by FileProvider? Thanks David
Replies
1
Boosts
0
Views
1.3k
Activity
Jul ’22
How to get thumbnail as base64 string (macOS)
I don't know how to make this function to return base64encoded string of thumbnail in jpeg format.     let request = QLThumbnailGenerator         .Request(fileAt: fileURL, size: size, scale: scale,                  representationTypes: .lowQualityThumbnail)     QLThumbnailGenerator.shared.generateRepresentations(for: request)     { (thumbnail, type, error) in         DispatchQueue.main.async {             if thumbnail == nil || error != nil {                 // Handle the error case gracefully.             } else {                 // return the thumbnail as bas64 string. return ...             }         }     } }
Replies
1
Boosts
0
Views
1.3k
Activity
Jul ’22
Quick Look
Hi! I'm new to Apple developing. Could anyone please tell me how to configure a quick look for my document? Also, how to print my document? Thanks🙏
Replies
1
Boosts
0
Views
1.5k
Activity
May ’22
iOS Thumbnail Extension vs Network access
Is it possible to use network from within iOS Thumbnail Extension? I tried - it works fine under simulator, but I'm getting this error when running on real device: networkd_settings_read_from_file Sandbox is preventing this process from reading networkd settings file at "/Library/Preferences/com.apple.networkd.plist", please add an exception. Adding "App Transport Security Settings / Allow Arbitrary Loads" plist entry didn't help. As the error seems to be specific access to a particular file I tried adding "com.apple.security.temporary-exception.files.absolute-path.read-only" but it didn't help and looks like it couldn't help on iOS: "Note: This chapter describes property list keys specific to the macOS implementation of App Sandbox. They are not available in iOS."
Replies
3
Boosts
0
Views
2.8k
Activity
Mar ’22
P frame extraction
I want perform p frame extraction from video. Is P-Frame thumbnail extraction is supported in the iOS API?
Replies
0
Boosts
0
Views
753
Activity
Mar ’22
can't show up thumbnails of mxf format
.mxf format thumbnails cannot be located on your iMac 24 inch running macOS Monterey 12.1 with a m1 chip.
Replies
0
Boosts
0
Views
912
Activity
Jan ’22
Does QLThumbnailImageCreate still support webarchive
In the past QLThumbnailImageCreate would return an NSImage from a url pointing to a webarchive. It's not doing so now. Is this a bug, or do I not understand something?
Replies
0
Boosts
0
Views
868
Activity
Dec ’21
AVAudioEngine crashes Quick Look Preview Extension on iOS 15
Hi, I'm trying to write a Quick Look extension for my iOS app. However, I'm having issues initializing AVAudioEngine in my QLPreviewingController subclass from preparePreviewOfFile. The following error messages are printed to the console after attempting to initialize AVAudioEngine, and the Quick Look Extension crashes with EXC_BAD_ACCESS. The same code works fine within the main iOS app. It also works on macOS inside a Catalyst app on the macOS Monterey RC when previewing a file in the Finder. I've also filed feedback with feedback number FB9713048. Thanks for taking a look at this. Console output: [audiocomp] AudioComponentPluginMgr.mm:545 reg server remote proxy error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159 - Sandbox restriction.} [as] AudioSessionClientManager.cpp:475 Couldn't connect to com.apple.audio.AudioSession Error: 1100; AudioSession will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] AURemoteIO is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: AURemoteIO returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] GetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: GetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 0 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 throwing -10878 [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 44100 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) [avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1344:Initialize: (err = PerformCommand(*outputNode, kAUInitialize, NULL, 0)): error 268435459 [avae] AVAudioEngine.mm:167 Engine@0x2830594d0: could not initialize, error = 268435459 [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] SetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: SetProperty returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] Initialize is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: Initialize returned server mach error 0x10000003! [aurioc] AURemoteIO.cpp:1123 failed: 268435459 (enable 2, outf< 2 ch, 44100 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>) [avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1344:Initialize: (err = PerformCommand(*outputNode, kAUInitialize, NULL, 0)): error 268435459 [avae] AVAudioEngineGraph.mm:4631 Can't retrieve source node to play sequence because there is no output node! [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [aurioc] AURemoteIO.cpp:148 Couldn't connect to com.apple.audio.AURemoteIOServer; AURemoteIO will not be usable [default] GetProperty is passing a serverPID of 0 to CheckRPCError! [default] CheckRPCError: GetProperty returned server mach error 0x10000003! (lldb)
Replies
1
Boosts
0
Views
1.7k
Activity
Nov ’21
Open UIManagedDocument in a QLThumbnailProvider
Hello there, I'm using a combination of UIDocumentBrowserViewController + UIManagedDocument to manage documents, store and sync them with iCloud. Right now I'm trying to add support for thumbnails (custom type) using QuickLookThumbnailing framework. In a subclass of QLThumbnailProvider when trying to open the UIManagedDocument, Xcode returns an error from within thumbnail target: [error]addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (513) Also UIManagedDocument itself throws an error Error Domain=NSCocoaErrorDomain Code=513 "The file couldn’t be saved because you don’t have permission.". The cocoa error 513 is about no writing permissions, but I'm not sure what exactly it's tried to be written. In the thumbnail extension I just init the document with the URL that system send via the system method. Also I do not change anything in the document explicitly. I'm not sure what I'm missing, I took a look over the "Particles" example from Apple engineers, but they are using UIDocumentBrowserViewController and plain UIDocument which works great.
Replies
0
Boosts
0
Views
821
Activity
Aug ’21
Dose AR quick look support Mask Material?
Hey! Dose AR quick look support Mask Material? I have seen the the face tracking have face Mask out, which the face will create occlusion for the face. So the object like helmet wont look like just floating over the head. Now I wanted to take that mask material and apply to my other project, like world tracking and image tracking, is this possible? thanks.
Replies
0
Boosts
0
Views
871
Activity
Jul ’21
New Quick look not call extension
Testing QL extensions (thumbnail and preview) that I created base on this video. https://developer.apple.com/videos/play/wwdc2019/719 use command like sudo qlmanage -p /path/ELEVATOR.fs -c xxx.xxxxx.xxxxxx.fs -g /path/Preview.appex or sudo qlmanage -t /path/ELEVATOR.fs -c xxx.xxxxx.xxxxxx.fs -g /path/Preview.appex It give me error like this 2021-07-01 13:44:07.991 qlmanage[2278:64986] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa107, name = 'com.apple.coredrag' See /usr/include/servers/bootstrap_defs.h for the error codes. 2021-07-01 13:44:08.005 qlmanage[2278:64986] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8617, name = 'com.apple.tsm.portname' See /usr/include/servers/bootstrap_defs.h for the error codes. not call thumbnail or preview extension
Replies
0
Boosts
2
Views
806
Activity
Jul ’21