mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-04 00:17:30 +01:00
Fix #1841
This commit is contained in:
parent
753a0574b1
commit
4ebe486816
@ -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…
x
Reference in New Issue
Block a user