From f3cdd232b6d1f1c32537030a99040d68f5df8c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Wed, 28 Feb 2024 09:05:13 +0100 Subject: [PATCH] Fix volume button on iOS/Safari --- src/components/VideoPlayerContexts/VolumeContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoPlayerContexts/VolumeContext.js b/src/components/VideoPlayerContexts/VolumeContext.js index 2df463654075..a0b972d37a0d 100644 --- a/src/components/VideoPlayerContexts/VolumeContext.js +++ b/src/components/VideoPlayerContexts/VolumeContext.js @@ -14,7 +14,7 @@ function VolumeContextProvider({children}) { if (!currentVideoPlayerRef.current) { return; } - currentVideoPlayerRef.current.setStatusAsync({volume: newVolume}); + currentVideoPlayerRef.current.setStatusAsync({volume: newVolume, isMuted: newVolume === 0}); volume.value = newVolume; }, [currentVideoPlayerRef, volume],