Contents

markAsFinished()

Marks the input as finished to indicate that you’re done appending samples to it.

Declaration

func markAsFinished()

Discussion

Apps that monitor an input’s isReadyForMoreMediaData value must call this method when they finish appending to it. This is necessary to prevent other inputs from stalling because they’re waiting on the input’s media data to complete the ideal interleaving pattern.

After calling this method from the serial queue passed to requestMediaDataWhenReady(on:using:), the input issues no more invocations of the callback it passes to that method.

See Also

Appending media samples