Post

Replies

Boosts

Views

Activity

Reply to AVAssetDownloadConfiguration does not download supplemental tracks on iOS 16
For the manifest shown above, here is what we observe when downloading on an iOS 16 device vs an iOS 17+ device: iOS 16 device — downloaded .movpkg contents: v_6 (video) — Complete=YES, 1532 segment files. Downloaded correctly. a_18 (audio, default) — Complete=YES, 1532 segment files. Downloaded correctly. s_25 (subtitle) — directory not created in the .movpkg package. s_31 (subtitle) — directory created, but contains only StreamInfoBoot.xml with Complete=NO, PeakBandwidth=0, MediaBytesStored=0. No segment files. s_37 (subtitle) — directory not created. s_43 (subtitle) — directory not created. s_49 (subtitle) — directory not created. Only 1 out of 5 subtitle tracks got a directory created, and it contains no segment data. We tested the same content on a second iOS 16 device — there, 2 out of 5 subtitle tracks got empty directories (different tracks). The behavior is inconsistent across devices. When the user goes offline, AVFoundation sees the incomplete subtitle stream in the package and attempts to fetch the missing segments over the network, resulting in NSURLErrorNotConnectedToInternet (error -1009). iOS 17+ device: All 5 subtitle track directories are created and all contain segment data. Offline playback works without issues.
Topic: Media Technologies SubTopic: Video Tags:
Sep ’26
Reply to Which storage capacity key should be used for offline video downloads: volumeAvailableCapacityKey or volumeAvailableCapacityForImportantUsageKey?
I did some additional testing on my second device and noticed behavior that seems interesting, but I’m not sure whether I’m interpreting it correctly. Case 1: iPad Settings reports ~20 GB free volumeAvailableCapacityKey returns ~7.6 GB volumeAvailableCapacityForImportantUsageKey returns ~19.3 GB Case 2 (after I intentionally downloaded a large amount of content to fill up the device storage): iPad Settings reports ~215 MB free volumeAvailableCapacityKey returns ~157 MB volumeAvailableCapacityForImportantUsageKey returns ~197 MB What surprised me is that in the first case, volumeAvailableCapacityForImportantUsageKey is very close to the value shown in Settings, while volumeAvailableCapacityKey is much lower. But in the second case, when the device is almost full, all three values become much closer to each other. Am I understanding correctly that as the device runs out of storage, the system has less reclaimable/purgeable space available, so the different capacity estimates start converging because there is simply less content that iPadOS can optimize or clean up automatically? Another interesting observation is that after reaching the values from Case 2, content downloads in many apps effectively stopped working. For example: Netflix appeared to start downloading, but nothing actually happened Some other apps with content downloading also stopped downloading videos without showing any error App Store no longer allowed installing apps because of insufficient storage Xcode once failed to install my app onto the device because there was not enough space available What confuses me is that all of the reported values were still greater than zero. At the same time, ~215 MB free space is the absolute minimum I managed to reach on the device, so perhaps iPadOS has some kind of internal storage reservation or minimum writable threshold that is not reflected directly in these APIs?
Topic: App & System Services SubTopic: Core OS Tags:
May ’26
Reply to AVAssetDownloadConfiguration does not download supplemental tracks on iOS 16
For the manifest shown above, here is what we observe when downloading on an iOS 16 device vs an iOS 17+ device: iOS 16 device — downloaded .movpkg contents: v_6 (video) — Complete=YES, 1532 segment files. Downloaded correctly. a_18 (audio, default) — Complete=YES, 1532 segment files. Downloaded correctly. s_25 (subtitle) — directory not created in the .movpkg package. s_31 (subtitle) — directory created, but contains only StreamInfoBoot.xml with Complete=NO, PeakBandwidth=0, MediaBytesStored=0. No segment files. s_37 (subtitle) — directory not created. s_43 (subtitle) — directory not created. s_49 (subtitle) — directory not created. Only 1 out of 5 subtitle tracks got a directory created, and it contains no segment data. We tested the same content on a second iOS 16 device — there, 2 out of 5 subtitle tracks got empty directories (different tracks). The behavior is inconsistent across devices. When the user goes offline, AVFoundation sees the incomplete subtitle stream in the package and attempts to fetch the missing segments over the network, resulting in NSURLErrorNotConnectedToInternet (error -1009). iOS 17+ device: All 5 subtitle track directories are created and all contain segment data. Offline playback works without issues.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Sep ’26
Reply to Which storage capacity key should be used for offline video downloads: volumeAvailableCapacityKey or volumeAvailableCapacityForImportantUsageKey?
I did some additional testing on my second device and noticed behavior that seems interesting, but I’m not sure whether I’m interpreting it correctly. Case 1: iPad Settings reports ~20 GB free volumeAvailableCapacityKey returns ~7.6 GB volumeAvailableCapacityForImportantUsageKey returns ~19.3 GB Case 2 (after I intentionally downloaded a large amount of content to fill up the device storage): iPad Settings reports ~215 MB free volumeAvailableCapacityKey returns ~157 MB volumeAvailableCapacityForImportantUsageKey returns ~197 MB What surprised me is that in the first case, volumeAvailableCapacityForImportantUsageKey is very close to the value shown in Settings, while volumeAvailableCapacityKey is much lower. But in the second case, when the device is almost full, all three values become much closer to each other. Am I understanding correctly that as the device runs out of storage, the system has less reclaimable/purgeable space available, so the different capacity estimates start converging because there is simply less content that iPadOS can optimize or clean up automatically? Another interesting observation is that after reaching the values from Case 2, content downloads in many apps effectively stopped working. For example: Netflix appeared to start downloading, but nothing actually happened Some other apps with content downloading also stopped downloading videos without showing any error App Store no longer allowed installing apps because of insufficient storage Xcode once failed to install my app onto the device because there was not enough space available What confuses me is that all of the reported values were still greater than zero. At the same time, ~215 MB free space is the absolute minimum I managed to reach on the device, so perhaps iPadOS has some kind of internal storage reservation or minimum writable threshold that is not reflected directly in these APIs?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’26