From 37b7fc1c2097dac584b03826d5c2e3433147c499 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Wed, 14 Aug 2024 08:59:17 +0200 Subject: [PATCH] fix: report pause playback on pause --- components/CurrentlyPlayingBar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index f6d44b61..89963c59 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -229,6 +229,10 @@ export const CurrentlyPlayingBar: React.FC = () => { ? backdropUrl : undefined } + debug={{ + enable: true, + thread: true, + }} paused={paused} onProgress={(e) => onProgress(e)} subtitleStyle={{ @@ -249,9 +253,10 @@ export const CurrentlyPlayingBar: React.FC = () => { } else if (e.isSeeking) { return; } else { - setPaused(true); + pause(); } }} + progressUpdateInterval={1000} onError={(e) => { console.log(e); writeToLog(