mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
Merge pull request #9 from angristan/mute-default
Mute video player by default
This commit is contained in:
commit
faa766d65f
@ -11,6 +11,7 @@ class VideoPlayerViewModel: ObservableObject {
|
|||||||
|
|
||||||
func preparePlayer() {
|
func preparePlayer() {
|
||||||
player = .init(url: url)
|
player = .init(url: url)
|
||||||
|
player?.isMuted = true
|
||||||
player?.play()
|
player?.play()
|
||||||
guard let player else { return }
|
guard let player else { return }
|
||||||
NotificationCenter.default.addObserver(forName: .AVPlayerItemDidPlayToEndTime,
|
NotificationCenter.default.addObserver(forName: .AVPlayerItemDidPlayToEndTime,
|
||||||
|
Loading…
Reference in New Issue
Block a user