mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 14:20:32 +05:30
Fix queue row opening
This commit is contained in:
parent
730ba1ea2e
commit
9be29f581b
@ -34,27 +34,40 @@ struct PlayerQueueRow: View {
|
|||||||
player.avPlayerBackend.startPictureInPictureOnPlay = player.playingInPictureInPicture
|
player.avPlayerBackend.startPictureInPictureOnPlay = player.playingInPictureInPicture
|
||||||
|
|
||||||
player.videoBeingOpened = item.video
|
player.videoBeingOpened = item.video
|
||||||
player.show()
|
|
||||||
|
|
||||||
if history {
|
let playItem = {
|
||||||
player.playHistory(item, at: watchStoppedAt)
|
if history {
|
||||||
} else {
|
player.playHistory(item, at: watchStoppedAt)
|
||||||
player.advanceToItem(item, at: watchStoppedAt)
|
} else {
|
||||||
}
|
player.advanceToItem(item, at: watchStoppedAt)
|
||||||
|
}
|
||||||
|
|
||||||
if fullScreen {
|
if fullScreen {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
fullScreen = false
|
fullScreen = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if closePiPOnNavigation, player.playingInPictureInPicture {
|
||||||
|
player.closePiP()
|
||||||
|
}
|
||||||
|
|
||||||
|
if autoplay {
|
||||||
|
player.resetAutoplay()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if closePiPOnNavigation, player.playingInPictureInPicture {
|
#if os(iOS)
|
||||||
player.closePiP()
|
if player.presentingPlayer {
|
||||||
}
|
playItem()
|
||||||
|
} else {
|
||||||
|
player.onPresentPlayer.append(playItem)
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
playItem()
|
||||||
|
#endif
|
||||||
|
|
||||||
if autoplay {
|
player.show()
|
||||||
player.resetAutoplay()
|
|
||||||
}
|
|
||||||
} label: {
|
} label: {
|
||||||
VideoBanner(video: item.video, playbackTime: watchStoppedAt, videoDuration: watch?.videoDuration)
|
VideoBanner(video: item.video, playbackTime: watchStoppedAt, videoDuration: watch?.videoDuration)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user