Examples of MPDOutput


Examples of org.bff.javampd.MPDOutput

          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);
            }
View Full Code Here

Examples of org.bff.javampd.MPDOutput

   * @param event the {@link OutputChangeEvent} that occurred
   *
   * @since 1.6.0
   */
  private void outputChanged(String playerId, OutputChangeEvent event) {
    MPDOutput output = (MPDOutput) event.getSource();
    logger.debug("Output {} changed on player {}, enabled = {}", output.getId(), playerId, output.isEnabled());
    PlayerCommandTypeMapping playerCommand =
        output.isEnabled() ? PlayerCommandTypeMapping.ENABLE
                   : PlayerCommandTypeMapping.DISABLE;
    String[] itemNames = getItemsByPlayerCommandAndOutput(playerId, playerCommand, output);
    for (String itemName : itemNames) {
      eventPublisher.postUpdate(itemName, (State) playerCommand.type);
    }
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.