mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Music mode controls layout improvements
This commit is contained in:
parent
a2b9d4d938
commit
3a05462965
@ -609,6 +609,7 @@ final class PlayerModel: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func closeCurrentItem(finished: Bool = false) {
|
func closeCurrentItem(finished: Bool = false) {
|
||||||
|
controls.hide()
|
||||||
pause()
|
pause()
|
||||||
closePiP()
|
closePiP()
|
||||||
|
|
||||||
@ -960,12 +961,16 @@ final class PlayerModel: ObservableObject {
|
|||||||
musicMode.toggle()
|
musicMode.toggle()
|
||||||
|
|
||||||
if musicMode {
|
if musicMode {
|
||||||
|
aspectRatio = VideoPlayerView.defaultAspectRatio
|
||||||
controls.presentingControls = true
|
controls.presentingControls = true
|
||||||
controls.removeTimer()
|
controls.removeTimer()
|
||||||
|
|
||||||
backend.startMusicMode()
|
backend.startMusicMode()
|
||||||
} else {
|
} else {
|
||||||
backend.stopMusicMode()
|
backend.stopMusicMode()
|
||||||
|
Delay.by(0.25) {
|
||||||
|
self.updateAspectRatio()
|
||||||
|
}
|
||||||
|
|
||||||
controls.resetTimer()
|
controls.resetTimer()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user