Class Controls
java.lang.Object
lol.trq.orpheus.Controls
Playback commands for one session. Nothing here throws or blocks: every method returns a future that always
completes, with
ControlStatus.UNSUPPORTED when the session cannot do it and ControlStatus.REFUSED
when the session is gone.-
Method Summary
Modifier and TypeMethodDescriptionmute(boolean muted) next()pause()play()previous()rate(double rate) Sets the playback speed; 1 is normal.rewind()Jumps to a position from the start of the track.shuffle(boolean on) stop()Plays when paused and pauses when playing.volume(double volume) Sets the volume of the session, 0 to 1.
-
Method Details
-
play
-
pause
-
togglePlayPause
Plays when paused and pauses when playing. -
stop
-
next
-
previous
-
seek
Jumps to a position from the start of the track. -
fastForward
-
rewind
-
shuffle
-
repeat
-
rate
Sets the playback speed; 1 is normal. -
volume
Sets the volume of the session, 0 to 1. -
mute
-