mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
tvOS History improvements
This commit is contained in:
@@ -14,11 +14,7 @@ struct PlayerQueueRow: View {
|
||||
player.addCurrentItemToHistory()
|
||||
|
||||
if history {
|
||||
let newItem = player.enqueueVideo(item.video, prepending: true)
|
||||
player.advanceToItem(newItem!)
|
||||
if let historyItemIndex = player.history.firstIndex(of: item) {
|
||||
player.history.remove(at: historyItemIndex)
|
||||
}
|
||||
player.playHistory(item)
|
||||
} else {
|
||||
player.advanceToItem(item)
|
||||
}
|
||||
|
@@ -45,6 +45,7 @@ final class PlayerViewController: UIViewController {
|
||||
let controller = UIHostingController(rootView:
|
||||
AnyView(
|
||||
NowPlayingView(infoViewController: true)
|
||||
.frame(maxHeight: 600)
|
||||
.environmentObject(playerModel)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user