Package org.openhab.binding.xbmc.rpc.calls

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerGetItem


    final List<String> properties = getPlayerProperties(updatePolledPropertiesOnly);
   
    if (!properties.isEmpty()) {
      logger.debug("[{}]: Retrieving properties ({}) for playerId {}", xbmc.getHostname(), properties.size(), playerId);
      // make the request for the player item details
      final PlayerGetItem item = new PlayerGetItem(client, httpUri);
      item.setPlayerId(playerId);
      item.setProperties(properties);

      item.execute(new Runnable() {
        public void run() {
          // now update each of the openHAB items for each property
          for (String property : properties) {
            String value = item.getPropertyValue(property);     
            if (property.equals("Player.Fanart")) {
              updateFanartUrl(property, value);
            } else {
              updateProperty(property, value);       
            }
View Full Code Here

TOP

Related Classes of org.openhab.binding.xbmc.rpc.calls.PlayerGetItem

Copyright © 2018 www.massapicom. 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.