mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
Improve opening videos
This commit is contained in:
parent
38454720de
commit
a3ba1cb6df
@ -97,7 +97,15 @@ struct OpenVideosModel {
|
||||
|
||||
if playbackMode == .playNow || playbackMode == .shuffleAll {
|
||||
player.show()
|
||||
player.advanceToNextItem()
|
||||
#if os(iOS)
|
||||
if player.presentingPlayer {
|
||||
player.advanceToNextItem()
|
||||
} else {
|
||||
player.onPresentPlayer.append { [weak player] in player?.advanceToNextItem() }
|
||||
}
|
||||
#else
|
||||
player.advanceToNextItem()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user