Instance Method

step(byPresentationTime:wasPinned:)

Moves the cursor by a given delta time on the presentation timeline.

Declaration

func step(byPresentationTime deltaPresentationTime: CMTime, wasPinned outWasPinned: UnsafeMutablePointer<ObjCBool>?) -> CMTime

Parameters

deltaPresentationTime

The amount of time to move in the presentation timeline.

outWasPinned

The amount of time the cursor was moved along the presentation timeline. Because sample cursors snap to sample boundaries when stepped, this value may not be equal to deltaDecodeTime even if the cursor was not pinned.

Return Value

The amount of time the cursor was moved along the presentation timeline. Because sample cursors snap to sample boundaries when stepped, this value may not be equal to deltaPresentationTime even if the cursor was not pinned.

See Also

Traversing Samples

func step(byDecodeTime: CMTime, wasPinned: UnsafeMutablePointer<ObjCBool>?) -> CMTime

Moves the cursor by a given delta time on the decode timeline.

func stepInDecodeOrder(byCount: Int64) -> Int64

Moves the cursor a given number of samples in decode order.

func stepInPresentationOrder(byCount: Int64) -> Int64

Moves the cursor a given number of samples in presentation order.