Exemple #1
0
        public MediaProviderLibrary(IContentDirectorySupportV1 aSupport)
        {
            iSupport = aSupport;

            iMutex = new Mutex(false);

            string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);

            iMetadata             = new container();
            iMetadata.Id          = kLibraryId;
            iMetadata.Title       = Name;
            iMetadata.WriteStatus = "PROTECTED";
            iMetadata.Restricted  = true;
            iMetadata.Searchable  = true;
            iMetadata.AlbumArtUri.Add(iSupport.VirtualFileSystem.Uri(Path.Combine(path, "Library.png")));

            iMediaServers       = new Dictionary <MediaServer, ModelMediaServer>();
            iSortedMediaServers = new SortedList <string, ModelMediaServer>();

            iLibrary = new Library(iSupport.SsdpNotifyProvider);
        }
Exemple #2
0
 public IContentDirectory Create(IContentDirectorySupportV1 aSupport)
 {
     return(new MediaProviderLibrary(aSupport));
 }