From 6c0d6434e09c577e2734a566272d961a80cdcb87 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 28 Jun 2022 13:13:19 +0200 Subject: [PATCH] Fix toggle play command for tvOS --- Shared/Player/VideoPlayerView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 400134a0..744ad72d 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -158,6 +158,9 @@ struct VideoPlayerView: View { player.backend.seek(relative: .secondsInDefaultTimescale(10)) } } + .onPlayPauseCommand { + player.togglePlay() + } #else GeometryReader { geometry in VStack(spacing: 0) {