NSCoding support for AVComposition

Number:rdar://FB7709954 Date Originated:2020/05/21
Status:Open Resolved:
Product:AVFoundation Product Version:
Classification:Suggestion Reproducible:
It would be useful for AVComposition (and AVVideoComposition) to be able to conform to NSCoding so that it can be persisted for use between app sessions. The best workaround for this currently seems to be to define an identical API on top of AVComposition which conforms to NSCoding, and then have a way to generate an AVComposition off of this identical API. It's a bit cumbersome and requires maintenance as new features of AVComposition are exercised.


Response from Apple

We looked into this issue and the problem is that AVAsset doesn’t support NSCoding, so we have no reasonable way to copy the internal asset.

By cellsworth at May 27, 2020, 1:13 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!