Instance Method

stepInDecodeOrder(byCount:)

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

Declaration

func stepInDecodeOrder(byCount stepCount: Int64) -> Int64

Parameters

stepCount

The number of samples to move across. If positive, step forward this many samples. If negative, step backward this many samples.

Return Value

The number of samples the cursor traversed. If the beginning or the end of the sample sequence was reached before the requested number of samples was traversed, the absolute value of the result will be less than the absolute value of stepCount.

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 step(byPresentationTime: CMTime, wasPinned: UnsafeMutablePointer<ObjCBool>?) -> CMTime

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

func stepInPresentationOrder(byCount: Int64) -> Int64

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