Пример #1
0
 public static boolean isUpnpControllable(String uuid) {
   // Disable manually for Panasonic TVs since they lie
   if (rendererMap.containsKey(uuid)
       && !getDeviceDetailsString(getDevice(uuid)).contains("VIERA")) {
     return rendererMap.get(uuid, "0").controls != 0;
   }
   return false;
 }
Пример #2
0
 protected void rendererUpdated(Device d) {
   String uuid = getUUID(d);
   if (rendererMap.containsKey(uuid)) {
     if (rendererMap.get(uuid, "0").needsRenewal()) {
       LOGGER.debug("Renewing subscriptions to ", getFriendlyName(d));
       subscribeAll(d, uuid);
     }
     rendererMap.mark(uuid, ACTIVE, true);
   }
 }
Пример #3
0
 public static Renderer getRenderer(String uuid) {
   if (rendererMap.containsKey(uuid)) {
     return rendererMap.get(uuid, "0");
   }
   return null;
 }
Пример #4
0
 public static boolean isActive(String uuid, String id) {
   if (rendererMap.containsKey(uuid, id)) {
     return rendererMap.get(uuid, id).active;
   }
   return false;
 }