Instance Method

step(byDecodeTime:wasPinned:)

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

Declaration

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

Parameters

deltaDecodeTime

The amount of time to move in the decode timeline.

outWasPinned

If the beginning or the end of the sample sequence was reached before the requested deltaDecodeTime was traversed, the Boolean value at the address specified by outWasPinned is set to true. May be NULL if this information isn't desired.

Return Value

The amount of time the cursor was moved along the decode 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.

See Also

Traversing Samples

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

Moves the cursor by a given delta time on the presentation 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.