From 75de878618e36232e79db6b05fee538d2e0cf3bf Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Tue, 13 Aug 2024 14:41:37 +0200 Subject: [PATCH] fix: show loader for videos but not music --- components/CurrentlyPlayingBar.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index 162b4a69..212aac6d 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -56,6 +56,7 @@ export const CurrentlyPlayingBar: React.FC = () => { const videoRef = useRef(null); const [paused, setPaused] = useState(true); const [progress, setProgress] = useState(0); + const [pip, setPip] = useState(false); const aBottom = useSharedValue(0); const aPadding = useSharedValue(0); @@ -229,14 +230,19 @@ export const CurrentlyPlayingBar: React.FC = () => { {cp.playbackUrl && (