Contents

seek(to:)

Sets the current playback time to the time specified by the date object.

Declaration

nonisolated func seek(to date: Date) async -> Bool

Parameters

  • date:

    The time to which to seek.

Return Value

true if the playhead was moved to date, otherwise false.

Discussion

For playback content that is associated with a range of dates, this method moves the playhead to point within that range. This method will fail (return false) if date is outside the range or if the content is not associated with a range of dates.

See Also

Related Documentation

Seeking through media