mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix orientation on iOS 16
This commit is contained in:
@@ -184,7 +184,7 @@ final class PlayerModel: ObservableObject {
|
||||
|
||||
private var currentArtwork: MPMediaItemArtwork?
|
||||
|
||||
var onPresentPlayer: (() -> Void)?
|
||||
var onPresentPlayer = [() -> Void]()
|
||||
private var remoteCommandCenterConfigured = false
|
||||
|
||||
init(
|
||||
@@ -373,7 +373,7 @@ final class PlayerModel: ObservableObject {
|
||||
|
||||
#if os(iOS)
|
||||
if !playingInPictureInPicture, showingPlayer {
|
||||
onPresentPlayer = { [weak self] in
|
||||
onPresentPlayer.append { [weak self] in
|
||||
changeBackendHandler?()
|
||||
self?.playNow(video, at: time)
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ extension PlayerModel {
|
||||
videos.forEach { enqueueVideo($0, loadDetails: false) }
|
||||
|
||||
#if os(iOS)
|
||||
onPresentPlayer = { [weak self] in self?.advanceToNextItem() }
|
||||
onPresentPlayer.append { [weak self] in self?.advanceToNextItem() }
|
||||
#else
|
||||
advanceToNextItem()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user