An object that defines an interface for reading sample references from a single asset track.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
Clients can extract information about the location of samples in a track—the file URL and offset—by adding an instance of this class to an
AVAsset object using the
k attachments on the extracted sample buffers describe the location of the sample data. Find more information about sample buffers describing sample references in the CMSampleBuffer.
You can also append sample buffers extracted using this class to an
AVAsset instance to create movie tracks that are not self-contained and reference data in the original file instead. To write tracks that are not self-contained, use instances of
AVAsset configured to write files of type
Since you can't extract sample data and return it by instances of
AVAsset, ignore the value of the