The native camera app on iPhone 15 can record videos directly in external hard drive. Is there an API to achieve the same in Photos framework?
Replies
No there is not, the Photo Library and the asset resources are always stored on device. If you'd like to see an API like this please file a feedback detailing your use case and the high level goals you're trying to achieve.
-
@Frameworks Engineer So you mean only Apple's camera app on iPhone 15 can save ProRes videos to external USB storage device, but not third party apps?
-
If you'd like to capture a video directly to an external device then look at adopting the new API
AVExternalStorageDevice
. https://developer.apple.com/documentation/avfoundation/avexternalstoragedeviceThere you can get the next URL to record to via the
nextAvailableURLs(withPathExtensions:)
api: https://developer.apple.com/documentation/avfoundation/avexternalstoragedevice/4190849-nextavailableurls -
@Frameworks Engineer Thanks a lot, though I see the API only works for iPhone 15 family, not earlier devices.