One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVSampleCursor

class · iOS 16.0+ · SDK 27.1

class AVSampleCursor

Members (21)

method · iOS 16.0+

comparePositionInDecodeOrder

TypeScript
comparePositionInDecodeOrder(cursor: AVSampleCursor): _Foundation_ComparisonResult
Swift declaration
func comparePositionInDecodeOrder(withPositionOf cursor: AVSampleCursor) -> ComparisonResult
method · iOS 16.0+

copyCurrentSampleFormatDescription

TypeScript
copyCurrentSampleFormatDescription(): _CoreMedia_CMFormatDescription
Swift declaration
func copyCurrentSampleFormatDescription() -> CMFormatDescription
method · iOS 16.0+

maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps

TypeScript
maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(cursor: AVSampleCursor): boolean
Swift declaration
func maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan cursor: AVSampleCursor) -> Bool
method · iOS 16.0+

maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps

TypeScript
maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(cursor: AVSampleCursor): boolean
Swift declaration
func maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan cursor: AVSampleCursor) -> Bool
method · iOS 16.0+

step

TypeScript
stepByDecodeTimeWasPinned(deltaDecodeTime: _CoreMedia_CMTime): { $ret: _CoreMedia_CMTime; $out: { "outWasPinned": boolean } }
Swift declaration
func step(byDecodeTime deltaDecodeTime: CMTime, wasPinned outWasPinned: UnsafeMutablePointer<ObjCBool>?) -> CMTime

Omit the output parameters from the call. The result contains $ret and $out, with outWasPinned inside $out.

method · iOS 16.0+

step

TypeScript
stepByPresentationTimeWasPinned(deltaPresentationTime: _CoreMedia_CMTime): { $ret: _CoreMedia_CMTime; $out: { "outWasPinned": boolean } }
Swift declaration
func step(byPresentationTime deltaPresentationTime: CMTime, wasPinned outWasPinned: UnsafeMutablePointer<ObjCBool>?) -> CMTime

Omit the output parameters from the call. The result contains $ret and $out, with outWasPinned inside $out.

method · iOS 16.0+

stepInDecodeOrder

TypeScript
stepInDecodeOrder(stepCount: number): number
Swift declaration
func stepInDecodeOrder(byCount stepCount: Int64) -> Int64
method · iOS 16.0+

stepInPresentationOrder

TypeScript
stepInPresentationOrder(stepCount: number): number
Swift declaration
func stepInPresentationOrder(byCount stepCount: Int64) -> Int64
get · iOS 16.0+

currentChunkInfo

TypeScript
get currentChunkInfo(): AVSampleCursorChunkInfo
Swift declaration
var currentChunkInfo: AVSampleCursorChunkInfo { get }
get · iOS 16.0+

currentChunkStorageRange

TypeScript
get currentChunkStorageRange(): AVSampleCursorStorageRange
Swift declaration
var currentChunkStorageRange: AVSampleCursorStorageRange { get }
get · iOS 16.0+

currentChunkStorageURL

TypeScript
get currentChunkStorageURL(): (string) | null
Swift declaration
var currentChunkStorageURL: URL? { get }
get · iOS 16.0+

currentSampleAudioDependencyInfo

TypeScript
get currentSampleAudioDependencyInfo(): AVSampleCursorAudioDependencyInfo
Swift declaration
var currentSampleAudioDependencyInfo: AVSampleCursorAudioDependencyInfo { get }
get · iOS 16.0+

currentSampleDependencyAttachments

TypeScript
get currentSampleDependencyAttachments(): (NativeMap<unknown, unknown>) | null
Swift declaration
var currentSampleDependencyAttachments: [AnyHashable : Any]? { get }
get · iOS 16.0+

currentSampleDependencyInfo

TypeScript
get currentSampleDependencyInfo(): AVSampleCursorDependencyInfo
Swift declaration
var currentSampleDependencyInfo: AVSampleCursorDependencyInfo { get }
get · iOS 16.0+

currentSampleDuration

TypeScript
get currentSampleDuration(): _CoreMedia_CMTime
Swift declaration
var currentSampleDuration: CMTime { get }
get · iOS 16.0+

currentSampleIndexInChunk

TypeScript
get currentSampleIndexInChunk(): number
Swift declaration
var currentSampleIndexInChunk: Int64 { get }
get · iOS 16.0+

currentSampleStorageRange

TypeScript
get currentSampleStorageRange(): AVSampleCursorStorageRange
Swift declaration
var currentSampleStorageRange: AVSampleCursorStorageRange { get }
get · iOS 16.0+

currentSampleSyncInfo

TypeScript
get currentSampleSyncInfo(): AVSampleCursorSyncInfo
Swift declaration
var currentSampleSyncInfo: AVSampleCursorSyncInfo { get }
get · iOS 16.0+

decodeTimeStamp

TypeScript
get decodeTimeStamp(): _CoreMedia_CMTime
Swift declaration
var decodeTimeStamp: CMTime { get }
get · iOS 16.0+

presentationTimeStamp

TypeScript
get presentationTimeStamp(): _CoreMedia_CMTime
Swift declaration
var presentationTimeStamp: CMTime { get }
get · iOS 16.0+

samplesRequiredForDecoderRefresh

TypeScript
get samplesRequiredForDecoderRefresh(): number
Swift declaration
var samplesRequiredForDecoderRefresh: Int { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVSampleCursor.init()

inherited init: clang: 'init' is unavailable

All AVFoundation types →