Skip to content
This repository was archived by the owner on Dec 27, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/com/vmichalak/sonoscontroller/SonosDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ public void removeFromQueue(int queueIndex) throws IOException, SonosControllerE
.put("UpdateID", "0").executeOn(this.ip);
}

/**
* Save the current queue as a PlayList (SavedQueue)
* @param playlistName the name of the playlist that will be used when saving
* @param id of the new play list. If the id correspond to an existing one, then the current playlist is overriden
*/
public void saveCurrentQueueAsPlayList(String playlistName,int id) throws IOException, SonosControllerException {
CommandBuilder.transport("SaveQueue").put("InstanceID", "0").put("ObjectID", String.valueOf(id)).put("Title", playlistName)
.executeOn(this.ip);
}

/**
* Get Current Track Info (position in the queue, duration, position, ...).
* @return TrackInfo object.
Expand Down