Navigation angepasst, Absprung in angetippten song.
This commit is contained in:
@@ -193,6 +193,18 @@ final class MAService {
|
||||
)
|
||||
}
|
||||
|
||||
/// Play a list of media items (replaces current queue)
|
||||
func playMedia(playerId: String, uris: [String]) async throws {
|
||||
logger.debug("Playing \(uris.count) tracks on player \(playerId)")
|
||||
_ = try await webSocketClient.sendCommand(
|
||||
"player_queues/play_media",
|
||||
args: [
|
||||
"queue_id": playerId,
|
||||
"media": uris
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
/// Add media item to the end of a player's queue
|
||||
func enqueueMedia(playerId: String, uri: String) async throws {
|
||||
logger.debug("Enqueuing media \(uri) on player \(playerId)")
|
||||
|
||||
Reference in New Issue
Block a user