New video details

This commit is contained in:
Arkadiusz Fal
2022-11-13 18:52:15 +01:00
parent 9bea3b623d
commit 4ee1383f3a
26 changed files with 718 additions and 443 deletions

View File

@@ -72,7 +72,9 @@ struct FixtureEnvironmentObjectsModifier: ViewModifier {
#if os(iOS)
player.playerSize = .init(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
#endif
player.queue = Video.allFixtures.map { PlayerQueueItem($0) }
let local = (1 ... 10).map { Video.local(URL(string: "https://\($0)")!) }
let videos = Video.allFixtures + local
player.queue = videos.map { PlayerQueueItem($0) }
return player
}