Examples of PulseaudioBindingProvider


Examples of org.openhab.binding.pulseaudio.PulseaudioBindingProvider

    setProperlyConfigured(true);
  }

  @Override
  public void internalReceiveCommand(String itemName, Command command) {
    PulseaudioBindingProvider provider = findFirstMatchingBindingProvider(
        itemName, command);
    if (provider == null) {
      logger.warn(
          "doesn't find matching binding provider [itemName={}, command={}]",
          itemName, command);
      return;
    }

    String audioItemName = provider.getItemName(itemName);
    String serverId = provider.getServerId(itemName);
    // Item item = provider.getItem(itemName);
    String paCommand = provider.getCommand(itemName);
    PulseaudioCommandTypeMapping pulseaudioCommandType = null;
    if (paCommand != null && !paCommand.isEmpty()) {
      try {
        pulseaudioCommandType = PulseaudioCommandTypeMapping
            .valueOf(paCommand.toUpperCase());
View Full Code Here

Examples of org.openhab.binding.pulseaudio.PulseaudioBindingProvider

   * @return the matching binding provider or <code>null</code> if no binding
   *         provider could be found
   */
  private PulseaudioBindingProvider findFirstMatchingBindingProvider(String itemName, Command command) {

    PulseaudioBindingProvider firstMatchingProvider = null;
    Class<? extends Item> itemClass = mapCommandToItemType(command);

    for (PulseaudioBindingProvider provider : this.providers) {
     
      String audioItemName = provider.getItemName(itemName);
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.