Initializer

init(track:)

Creates a newly allocated sample reference output object for supplying sample references.

Declaration

init(track: AVAssetTrack)

Parameters

track

The AVAssetTrack to provide sample references.

Return Value

An initialized AVAssetReaderSampleReferenceOutput instance.

Discussion

The track must be one of the tracks contained by the AVAssetReader instance’s asset for the returned AVAssetReaderSampleReferenceOutput instance.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software