예제 #1
0
 protected void contentDirectory_SearchSink(CpContentDirectory sender, System.String ContainerID, System.String SearchCriteria, System.String Filter, System.UInt32 StartingIndex, System.UInt32 RequestedCount, System.String SortCriteria, System.String Result, System.UInt32 NumberReturned, System.UInt32 TotalMatches, System.UInt32 UpdateID, Object e, object _Tag)
 {
     this.createItemsFromMetaData(Result);
 }
예제 #2
0
 protected void moveItemSink(CpContentDirectory _sender, uint _containerUpdateId, Object _tag)
 {
     // Bend AV Transport uri to renderer with new fii info!
     this.listActionDone();
 }
예제 #3
0
 protected void addItemSink(CpContentDirectory _sender, Object _tag)
 {
     if (itemAdded != null) itemAdded(this.listId, (MediaItem)_tag, 1, 1);
     // Bend AV Transport uri to renderer with new fii info!
     if (_tag != null)
         this.listActionDone();
 }
예제 #4
0
 public UPNPMediaList(String _listId = "")
     : base(_listId)
 {
     contentDirectory = Global.getMediaServerManager().getContentDirectory();
 }
예제 #5
0
 void contentDirectory_onStateVariableContainerUpdateIds(CpContentDirectory _contentDirectory, string _value)
 {
     // zone title list may be update. So call some method on the manager to let him do his work
     Global.getZoneTitleListManager().retrieveListByContainerUpdateId(_value);
 }
예제 #6
0
        protected void mediaServerRemovedSink(CpMediaServer _mediaServer)
        {
            this.writeLog(LogType.Info, String.Format("MediaServer '{0}' verloren", _mediaServer.ServerFriendlyName));

            if (_mediaServer.ServerFriendlyName != raumfeldMediaServerDeviceName)
                return;

            mediaServer = null;
            contentDirectory = null;
            if (mediaServerRemoved != null) mediaServerRemoved();
        }
예제 #7
0
        protected void mediaServerFoundSink(CpMediaServer _mediaServer)
        {
            this.writeLog(LogType.Info, String.Format("MediaServer '{0}' gefunden", _mediaServer.ServerFriendlyName));

            if (_mediaServer.ServerFriendlyName != raumfeldMediaServerDeviceName)
                return;

            mediaServer = _mediaServer;
            mediaServerIpAddress = this.getMediaServerIP(mediaServer);
            mediaServerRequestUriBase = this.getMediaServerRequestUri();

            contentDirectory = mediaServer.contentDirectory;
            contentDirectory.onStateVariableContainerUpdateIds += contentDirectory_onStateVariableContainerUpdateIds;

            this.writeLog(LogType.Info, String.Format("Medienserver IP: '{0}', RequestUrl: '{1}'", mediaServerIpAddress, mediaServerRequestUriBase));

            if (mediaServerFound != null) mediaServerFound();
        }