Allow display sleep when a GIF is on screen

This commit is contained in:
Jed Fox 2022-12-23 17:09:49 -05:00
parent 6bf5f94169
commit 18fe402cb1
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ extension MediaView {
let playerItem = AVPlayerItem(url: url)
let player = AVQueuePlayer(playerItem: playerItem)
player.isMuted = true
player.preventsDisplaySleepDuringVideoPlayback = false
return player
}