seek(to:toleranceBefore:toleranceAfter:completionHandler:)
Seeks to a particular time in the integrated time domain.
Declaration
func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime, completionHandler: (@Sendable (Bool) -> Void)? = nil)func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime) async -> BoolParameters
- time:
A time represented in the integrated time domain.
- toleranceBefore:
A tolerance before the target time to allow.
- toleranceAfter:
A tolerance after the target time to allow.
- completionHandler:
A callback the system invokes after the seek completes. It passes a Boolean value of
trueif the playhead moved to the new time.