Examples of MPDAdmin


Examples of org.bff.javampd.MPDAdmin

          case NEXT: player.playNext(); break;
          case PREV: player.playPrev(); break;
          case ENABLE:
          case DISABLE:
            Integer outputId = Integer.valueOf((String) commandParams);
            MPDAdmin admin = daemon.getMPDAdmin();
            MPDOutput output = new MPDOutput(outputId - 1); // internally mpd uses 0-based indexing
            if (pCommand == PlayerCommandTypeMapping.ENABLE) {
              admin.enableOutput(output);
            } else {
              admin.disableOutput(output);
            }
            break;
          case VOLUME:
            logger.debug("Volume adjustment received: '{}' '{}'", pCommand, commandParams);
            player.setVolume(((PercentType) commandParams).intValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.