Sets the current playback time to the time specified by the date object.
SDKs
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- AVFoundation
Declaration
func seek(to date: Date)
Parameters
date
The time to which to seek.
Discussion
The time to which the player is seeked may differ from the specified date
for efficiency. For sample accurate seeking see seek(to: