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.