mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-02 23:47:30 +01:00
Mute video player by default
This commit is contained in:
parent
0423351f5d
commit
18bbc96624
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user