mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Opening videos by URL and local files
This commit is contained in:
@@ -34,6 +34,7 @@ struct PlayerQueueRow: View {
|
||||
player.avPlayerBackend.startPictureInPictureOnPlay = player.playingInPictureInPicture
|
||||
|
||||
player.videoBeingOpened = item.video
|
||||
player.show()
|
||||
|
||||
if history {
|
||||
player.playHistory(item, at: watchStoppedAt)
|
||||
@@ -72,3 +73,11 @@ struct PlayerQueueRow: View {
|
||||
return .secondsInDefaultTimescale(seconds)
|
||||
}
|
||||
}
|
||||
|
||||
struct PlayerQueueRow_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
PlayerQueueRow(item: .init(
|
||||
.local(URL(string: "https://apple.com")!)
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user