Player bar visibility modes and settings

This commit is contained in:
Arkadiusz Fal
2022-12-17 19:35:07 +01:00
parent 8e5bafba58
commit fcf527fa87
20 changed files with 320 additions and 168 deletions

View File

@@ -574,7 +574,9 @@ final class PlayerModel: ObservableObject {
closePiP()
prepareCurrentItemForHistory(finished: finished)
currentItem = nil
withAnimation {
currentItem = nil
}
updateNowPlayingInfo()
backend.closeItem()

View File

@@ -48,7 +48,9 @@ extension PlayerModel {
comments.reset()
stream = nil
currentItem = item
withAnimation {
currentItem = item
}
if !time.isNil {
currentItem.playbackTime = time
@@ -204,7 +206,9 @@ extension PlayerModel {
let item = PlayerQueueItem(video, playbackTime: atTime)
if play {
currentItem = item
withAnimation {
currentItem = item
}
videoBeingOpened = video
}