Fix toggle play command for tvOS

This commit is contained in:
Arkadiusz Fal 2022-06-28 13:13:19 +02:00
parent a124a0c927
commit 7224b5e75f

View File

@ -158,6 +158,9 @@ struct VideoPlayerView: View {
player.backend.seek(relative: .secondsInDefaultTimescale(10)) player.backend.seek(relative: .secondsInDefaultTimescale(10))
} }
} }
.onPlayPauseCommand {
player.togglePlay()
}
#else #else
GeometryReader { geometry in GeometryReader { geometry in
VStack(spacing: 0) { VStack(spacing: 0) {