Instance Property

currentSampleDuration

The presentation duration of the sample at the receiver's current position.

Declaration

var currentSampleDuration: CMTime { get }

Discussion

If the receiver must be advanced past its current position in order to determine the presentation duration of the current sample, the value of currentSampleDuration is equal to indefinite. This can occur with streaming formats such as MPEG-2 transport streams.

See Also

Getting Current Sample Information

var currentChunkInfo: AVSampleCursorChunkInfo

A value that provides information about the chunk of samples to which the current sample belongs.

struct AVSampleCursorChunkInfo

A value that provides information about a chunk of media samples.

var currentChunkStorageRange: AVSampleCursorStorageRange

The sample range in the current chunk storage URL that is intended to be loaded together with the current sample as a chunk.

struct AVSampleCursorStorageRange

A struct indicating the offset and length of storage occupied by a media sample or its chunk.

var currentChunkStorageURL: URL?

The URL of the storage container of the current sample and other samples that are intended to be loaded in the same operation as a chunk.

var currentSampleDependencyInfo: AVSampleCursorDependencyInfo

The dependency information that describes relationships between a media sample and other media samples in the same sample sequence.

struct AVSampleCursorDependencyInfo

A value for describing dependencies between a media sample and other media samples in the same sample sequence.

var currentSampleIndexInChunk: Int64

The index of the current sample within the chunk to which it belongs.

var currentSampleStorageRange: AVSampleCursorStorageRange

The offset and length of the current sample in the current chunk storage URL.

var currentSampleSyncInfo: AVSampleCursorSyncInfo

The synchronization information for the current sample for consideration when resynchronizing a decoder.

struct AVSampleCursorSyncInfo

A value that describes attributes of a media sample for consideration when resynchronizing a decoder.

func copyCurrentSampleFormatDescription() -> CMFormatDescription

Returns the format description of the sample at the receiver's current position.