mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-16 17:55:13 +00:00
Fix #1841
This commit is contained in:
parent
753a0574b1
commit
4ebe486816
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ import SwiftUI
|
|||
func preparePlayer(autoPlay: Bool, isCompact: Bool) {
|
||||
player = .init(url: url)
|
||||
player?.audiovisualBackgroundPlaybackPolicy = .pauses
|
||||
player?.preventsDisplaySleepDuringVideoPlayback = false
|
||||
if (autoPlay || forceAutoPlay) && !isCompact {
|
||||
player?.play()
|
||||
isPlaying = true
|
||||
|
|
Loading…
Reference in a new issue