Moves the player item’s current time forward or backward by a specified number of steps.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- AVFoundation
Moves the player item’s current time forward or backward by a specified number of steps.
SDKs
Framework
var seekable Time Ranges: [NSValue]
An array of time ranges within which it is possible to seek.
func seek(to: CMTime, completion Handler: ((Bool) -> Void)?)
Sets the current playback time to the specified time and executes the specified block when the seek operation completes or is interrupted.
func seek(to: Date, completion Handler: ((Bool) -> Void)?) -> Bool
Sets the current playback time to the time specified by the date object.
func seek(to: CMTime, tolerance Before: CMTime, tolerance After: CMTime, completion Handler: ((Bool) -> Void)?)
Sets the current playback time within a specified time bound and invokes the specified block when the seek operation completes or is interrupted.
func cancel Pending Seeks()
Cancels any pending seek requests and invokes the corresponding completion handlers if present.
func seek(to: Date) -> Bool
Sets the current playback time to the time specified by the date object.
func seek(to: CMTime, tolerance Before: CMTime, tolerance After: CMTime)
Sets the current playback time within a specified time bound.