Added reporting of the repeat mode.
This commit is contained in:
parent
2ec81b34ea
commit
cb29844d9c
@ -889,14 +889,24 @@ Configuration:
|
|||||||
|
|
||||||
private def processRepeat(String option) {
|
private def processRepeat(String option) {
|
||||||
switch(option) {
|
switch(option) {
|
||||||
|
case 'null':
|
||||||
|
def mode = vlcj.mediaListPlayer.mode
|
||||||
|
msg("Repeat mode is: " +
|
||||||
|
mode == MediaListPlayerMode.REPEAT ? 'all.' :
|
||||||
|
(mode == MediaListPlayerMode.LOOP ? 'one.' : 'off.'))
|
||||||
|
return
|
||||||
|
|
||||||
case 'off':
|
case 'off':
|
||||||
vlcj.mediaListPlayer.mode = MediaListPlayerMode.DEFAULT
|
vlcj.mediaListPlayer.mode = MediaListPlayerMode.DEFAULT
|
||||||
|
msg "Repeat set to off."
|
||||||
break
|
break
|
||||||
case 'all':
|
case 'all':
|
||||||
vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT
|
vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT
|
||||||
|
msg "Repeat set to all."
|
||||||
break
|
break
|
||||||
case 'one':
|
case 'one':
|
||||||
vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP
|
vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP
|
||||||
|
msg "Repeat set to one."
|
||||||
break
|
break
|
||||||
default: invalidOptionsErr('repeat') } }
|
default: invalidOptionsErr('repeat') } }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user