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; }
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); } }
public static Renderer getRenderer(String uuid) { if (rendererMap.containsKey(uuid)) { return rendererMap.get(uuid, "0"); } return null; }
public static boolean isActive(String uuid, String id) { if (rendererMap.containsKey(uuid, id)) { return rendererMap.get(uuid, id).active; } return false; }