public void linkZoneToVirtualRenderer(Zone _zone, Boolean _unlink = false, Boolean _crossLink = true) { RendererManager rendererManager = Global.getRendererManager(); RendererVirtual renderer; // renderer UDN's are stored without 'uuid:' so we have to search with the uuid value cause this is the udn of the renderer renderer = (RendererVirtual)rendererManager.getRenderer(_zone.uuid); if (renderer != null) { if (_unlink) { renderer.zoneUDN = String.Empty; } else { renderer.zoneUDN = _zone.udn; } renderer.zoneLinked(); //rendererManager.updateRenderersValue(renderer); if (_crossLink) { rendererManager.linkVirtualRendererToZone(renderer, _unlink, false); } this.checkAllRenderersLinked(); if (_unlink == true) { this.writeLog(LogType.Info, String.Format("Zone '{0}' wurde von Renderer '{1}' entfernt", _zone.udn, renderer.udn)); } else { this.writeLog(LogType.Info, String.Format("Zone '{0}' wurde zu Renderer '{1}' zugeordnet", _zone.udn, renderer.udn)); } } else { this.writeLog(LogType.Warning, String.Format("Kein Virtueller Renderer für Zone '{0}' für Zuordnung gefunden", _zone.udn)); } }
public void linkRoomToRoomRenderer(Room _room, Boolean _unlink = false, Boolean _crossLink = true) { RendererManager rendererManager = Global.getRendererManager(); RendererRoom renderer; renderer = (RendererRoom)rendererManager.getRenderer(_room.rendererUDN); if (renderer != null) { if (_unlink) { renderer.roomUDN = String.Empty; } else { renderer.roomUDN = _room.udn; } renderer.roomLinked(); //rendererManager.updateRenderersValue(renderer); if (_crossLink) { rendererManager.linkRoomRendererToRoom(renderer, _unlink, false); } this.checkAllRenderersLinked(); if (_unlink == true) { this.writeLog(LogType.Info, String.Format("Raum '{0}' wurde von Renderer '{1}' entfernt", _room.udn, renderer.udn)); } else { this.writeLog(LogType.Info, String.Format("Raum '{0}' wurde zu Renderer '{1}' zugeordnet", _room.udn, renderer.udn)); } } else { this.writeLog(LogType.Warning, String.Format("Kein Renderer für Raum '{0}' für Zuordnung gefunden", _room.udn)); } }
public Controller(NetworkConnectInfo _networkConnectionInfo) { logWriter = Global.getLogWriter(); logWriter.setLogLevel(LogType.Error); this.writeLog(LogType.Info, "Starte Applikation Raumwiese"); // use OhNet-Upnp Stack. This is the only one we may use for now which contains most methods we need. // the intelUPNP device Stack is not developed in final realease for the wrapper. You may debelop other Stacks upnpStack = new UNPN_OhNet(); upnpStack.setNetwork(_networkConnectionInfo); upnpStack.onStartingNetwork += upnpStack_onStartingNetworkSink; upnpStack.init(); // create zone, mediaServer and renderer managers zoneManager = new ZoneManager(upnpStack); mediaServerManager = new MediaServerManager(upnpStack); rendererManager = new RendererManager(upnpStack); configManager = new ConfigManager(upnpStack); zoneTitleListManager = new ZoneTitleListManager(upnpStack); contentBrowser = new ContentDirectoryBrowserMulti("", upnpStack); playlistBrowser = new PlaylistBrowser(upnpStack); // create data cache for images imageDataCache = new ImageDataCache(); // set Managers global. Global.setMediaServerManager(mediaServerManager); Global.setRendererManager(rendererManager); Global.setZoneManager(zoneManager); Global.setConfigManager(configManager); Global.setImageDataCache(imageDataCache); Global.setZoneTitleListManager(zoneTitleListManager); Global.setContentBrowser(contentBrowser); Global.setPlaylistBrowser(playlistBrowser); }
static public void setRendererManager(RendererManager _rendererManager) { rendererManager = _rendererManager; }
public static void setRendererManager(RendererManager _rendererManager) { rendererManager = _rendererManager; }