feat: enqueue streams in running player
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user