currentSampleAudioDependencyInfo
The independent decodability information for the audio sample.
Declaration
var currentSampleAudioDependencyInfo: AVSampleCursorAudioDependencyInfo { get }Discussion
To position a sample cursor at the first sample that the audio decoder requires for a full refresh, move it back from the current sample until you find a sample that meets the following criteria:
The value of its audioSampleIsIndependentlyDecodable property is true.
The value of its audioSamplePacketRefreshCount property is greater than or equal to the number of steps back you’ve taken.
You don’t need to reposition the cursorif the current sample is independently decodable with an audioSamplePacketRefreshCount of 0.
See Also
Getting sample information
currentChunkInfoAVSampleCursorChunkInfocurrentChunkStorageRangeAVSampleCursorStorageRangecurrentChunkStorageURLcurrentSampleDependencyInfoAVSampleCursorDependencyInfocurrentSampleDurationcurrentSampleIndexInChunkcurrentSampleStorageRangecurrentSampleSyncInfoAVSampleCursorSyncInfocopyCurrentSampleFormatDescription()currentSampleDependencyAttachments