mirror of
https://github.com/yattee/yattee.git
synced 2026-06-10 08:44:19 +00:00
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:
@@ -232,6 +232,7 @@ struct TVPlayerView: View {
|
||||
onShowComments: { showDetailsPanel(tab: .comments) },
|
||||
onShowDebug: { showDebugOverlay() },
|
||||
onClose: { closeVideo() },
|
||||
onTogglePlayPause: { handlePlayPause() },
|
||||
onScrubbingChanged: { scrubbing in
|
||||
isScrubbing = scrubbing
|
||||
if scrubbing {
|
||||
|
||||
Reference in New Issue
Block a user