feat: enqueue streams in running player

This commit is contained in:
2026-10-22 16:03:56 +02:00
parent ac8e284d80
commit 6a4afc9f0e
17 changed files with 416 additions and 61 deletions
+4
View File
@@ -27,6 +27,10 @@ struct PlaybackQueue {
currentID = items.first?.id
}
mutating func appendStreams(_ entries: [(url: URL, label: String)]) {
items.append(contentsOf: entries.map { Item(url: $0.url, label: $0.label) })
}
mutating func updateCurrentLabel(_ label: String) {
guard let index = currentIndex else { return }
items[index].label = label