Keep tvOS player controls visible on pause via on-screen button

Route the on-screen play/pause button through handlePlayPause() so it
follows the same visibility and auto-hide timer logic as the Siri Remote
hardware button: timer stops when paused (controls stay pinned) and
restarts on resume.
This commit is contained in:
Arkadiusz Fal
2026-05-09 11:00:04 +02:00
parent 7c1549ed35
commit b6c3f0e71b
2 changed files with 6 additions and 1 deletions

View File

@@ -232,6 +232,7 @@ struct TVPlayerView: View {
onShowComments: { showDetailsPanel(tab: .comments) },
onShowDebug: { showDebugOverlay() },
onClose: { closeVideo() },
onTogglePlayPause: { handlePlayPause() },
onScrubbingChanged: { scrubbing in
isScrubbing = scrubbing
if scrubbing {