From 18bbc96624bc6463d6c51b1961dc7ebfaf355724 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Sat, 31 Dec 2022 00:07:42 +0100 Subject: [PATCH] Mute video player by default --- Packages/Status/Sources/Status/Media/VideoPlayerView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/Status/Sources/Status/Media/VideoPlayerView.swift b/Packages/Status/Sources/Status/Media/VideoPlayerView.swift index e16c499d..f24b7047 100644 --- a/Packages/Status/Sources/Status/Media/VideoPlayerView.swift +++ b/Packages/Status/Sources/Status/Media/VideoPlayerView.swift @@ -11,6 +11,7 @@ class VideoPlayerViewModel: ObservableObject { func preparePlayer() { player = .init(url: url) + player?.isMuted = true player?.play() guard let player else { return } NotificationCenter.default.addObserver(forName: .AVPlayerItemDidPlayToEndTime,