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); }
protected void moveItemSink(CpContentDirectory _sender, uint _containerUpdateId, Object _tag) { // Bend AV Transport uri to renderer with new fii info! this.listActionDone(); }
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(); }
public UPNPMediaList(String _listId = "") : base(_listId) { contentDirectory = Global.getMediaServerManager().getContentDirectory(); }
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); }
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(); }
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(); }