Start a session where the watch actually begins

This commit is contained in:
Arkadiusz Fal
2026-09-06 22:21:15 +02:00
parent 0e289ae920
commit 5072fb0dce
7 changed files with 463 additions and 27 deletions

View File

@@ -22,12 +22,14 @@ extension ExpandedPlayerSheet {
}
/// Restarts playback from the beginning.
///
/// The video this offers has finished, so playing it again is a new watch —
/// which is the player's to know about, not the overlay's.
func restartPlayback() {
guard let playerService else { return }
Task {
await playerService.seek(to: 0)
playerService.resume()
await playerService.replayCurrentVideo()
}
}