Hey!
Right now AudioPlayer asks items for related remote commands or uses those provided when track changes.
I find very useful to have the ability to refresh them later (because of the how backend's API is designed) – unfortunately current API doesn't allow to do that.
Maybe a new function or remoteCommands didSet block?
public var remoteCommands: [RemoteCommand] = [] {
didSet {
if let currentItem = currentItem {
enableRemoteCommands(forItem: currentItem)
}
}
}
Hey! Right now AudioPlayer asks items for related remote commands or uses those provided when track changes. I find very useful to have the ability to refresh them later (because of the how backend's API is designed) – unfortunately current API doesn't allow to do that. Maybe a new function or remoteCommands didSet block?