mirror of
https://github.com/yattee/yattee.git
synced 2026-10-31 08:57:17 +00:00
Start a session where the watch actually begins
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user