sampleTimingInfo(at:)
Returns sample timing information for a sample at the specified index.
Declaration
func sampleTimingInfo(at sampleIndex: CMItemIndex) throws -> CMSampleTimingInfoParameters
- sampleIndex:
The index of the sample to query for sample timing. The system raises an error if the sample index is out of range.
Return Value
A structure that contains the decode and presentation timestamps of a sample.
Discussion
The system throws a bufferHasNoSampleTimingInfo error if the buffer doesn’t contain sample timing.