Beispiel #1
0
        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);
        }
Beispiel #2
0
 public ConfigManager(UPNP.UNPN _upnpStack)
     : base(_upnpStack)
 {
 }
Beispiel #3
0
 public ZoneTitleListManager(UPNP.UNPN _upnpStack)
     : base(_upnpStack)
 {
 }
Beispiel #4
0
 public MediaListManager(UPNP.UNPN _upnpStack) :
     base(_upnpStack)
 {
     lists = new Dictionary <String, UPNPMediaList>();
 }
 public RendererManager(UPNP.UNPN _upnpStack)
     : base(_upnpStack)
 {
     renderers = new Dictionary <string, Renderer.Renderer>();
 }
Beispiel #6
0
 public ZoneManager(UPNP.UNPN _upnpStack)
     : base(_upnpStack)
 {
     zones = new Dictionary <string, Zone>();
     rooms = new Dictionary <string, Room>();
 }
Beispiel #7
0
 public ContentDirectoryBrowser(string _rootContainerId = "", UPNP.UNPN _upnpStack = null) :
     base(_upnpStack)
 {
     rootContainerId = _rootContainerId;
 }
Beispiel #8
0
 public ContentDirectoryBrowserMulti(String _rootListId = "", UPNP.UNPN _upnpStack = null)
     : base(_rootListId, _upnpStack)
 {
     dictCurListIdContent      = new Dictionary <ContentDirectoryMainContentType, String>();
     dictCurListIdSearchParent = new Dictionary <ContentDirectoryMainContentType, String>();
 }
Beispiel #9
0
 public PlaylistManagement(UPNP.UNPN _upnpStack = null)
     : base(_upnpStack)
 {
 }
Beispiel #10
0
 public PlaylistBrowser(UPNP.UNPN _upnpStack = null)
     : base(PlaylistRootContainerId, _upnpStack)
 {
 }
 public MediaServerManager(UPNP.UNPN _upnpStack)
     : base(_upnpStack)
 {
 }