This commit is contained in:
@@ -117,6 +117,14 @@ public class ITPlaylist extends ITObject {
|
||||
Dispatch.put(object, "SongRepeat", repeatMode.ordinal());
|
||||
}
|
||||
|
||||
/**
|
||||
* Cycle repeat modes.
|
||||
*/
|
||||
public void cycleSongRepeat() {
|
||||
int repeat = Dispatch.get(object, "SongRepeat").getInt();
|
||||
Dispatch.put(object, "SongRepeat", (repeat + 1) % 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the playback repeat mode.
|
||||
* @return Returns the playback repeat mode.
|
||||
|
||||
@@ -499,4 +499,8 @@ public class iTunes {
|
||||
Dispatch window = iTunes.getProperty("BrowserWindow").toDispatch();
|
||||
return new ITBrowserWindow(window);
|
||||
}
|
||||
|
||||
public void cycleSongRepeat() {
|
||||
getCurrentPlaylist().cycleSongRepeat();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user