|
@@ -29,208 +29,8 @@ namespace MediaBrowser.Dlna
|
|
{
|
|
{
|
|
var list = new List<DeviceProfile>();
|
|
var list = new List<DeviceProfile>();
|
|
|
|
|
|
- //list.Add(new DeviceProfile
|
|
|
|
- //{
|
|
|
|
- // Name = "Samsung TV (B Series)",
|
|
|
|
- // ClientType = "DLNA",
|
|
|
|
-
|
|
|
|
- // Identification = new DeviceIdentification
|
|
|
|
- // {
|
|
|
|
- // FriendlyName = "^TV$",
|
|
|
|
- // ModelNumber = @"1\.0",
|
|
|
|
- // ModelName = "Samsung DTV DMR"
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // TranscodingProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio,
|
|
|
|
- // },
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "ts",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // DirectPlayProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio,
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "avi",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp4",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // MediaProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="avi",
|
|
|
|
- // MimeType = "video/x-msvideo",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="mkv",
|
|
|
|
- // MimeType = "video/x-mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //});
|
|
|
|
-
|
|
|
|
- //list.Add(new DeviceProfile
|
|
|
|
- //{
|
|
|
|
- // Name = "Samsung TV (E/F-series)",
|
|
|
|
- // ClientType = "DLNA",
|
|
|
|
-
|
|
|
|
- // Identification = new DeviceIdentification
|
|
|
|
- // {
|
|
|
|
- // FriendlyName = @"(^\[TV\][A-Z]{2}\d{2}(E|F)[A-Z]?\d{3,4}.*)|^\[TV\] Samsung|(^\[TV\]Samsung [A-Z]{2}\d{2}(E|F)[A-Z]?\d{3,4}.*)",
|
|
|
|
- // ModelNumber = @"(1\.0)|(AllShare1\.0)"
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // TranscodingProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "ts",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // DirectPlayProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "avi",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp4",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // MediaProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="avi",
|
|
|
|
- // MimeType = "video/x-msvideo",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="mkv",
|
|
|
|
- // MimeType = "video/x-mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //});
|
|
|
|
-
|
|
|
|
- //list.Add(new DeviceProfile
|
|
|
|
- //{
|
|
|
|
- // Name = "Samsung TV (C/D-series)",
|
|
|
|
- // ClientType = "DLNA",
|
|
|
|
-
|
|
|
|
- // Identification = new DeviceIdentification
|
|
|
|
- // {
|
|
|
|
- // FriendlyName = @"(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}(D)[A-Z]?\d{3,4}.*)|^\[TV\] Samsung",
|
|
|
|
- // ModelNumber = @"(1\.0)|(AllShare1\.0)"
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // TranscodingProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
- // new TranscodingProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "ts",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // DirectPlayProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "avi",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp4",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // MediaProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="avi",
|
|
|
|
- // MimeType = "video/x-msvideo",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="mkv",
|
|
|
|
- // MimeType = "video/x-mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //});
|
|
|
|
-
|
|
|
|
|
|
+ list.Add(new SamsungSmartTvProfile());
|
|
|
|
+
|
|
list.Add(new Xbox360Profile());
|
|
list.Add(new Xbox360Profile());
|
|
|
|
|
|
list.Add(new XboxOneProfile());
|
|
list.Add(new XboxOneProfile());
|
|
@@ -245,87 +45,12 @@ namespace MediaBrowser.Dlna
|
|
|
|
|
|
list.Add(new PanasonicVieraProfile());
|
|
list.Add(new PanasonicVieraProfile());
|
|
|
|
|
|
- //list.Add(new DeviceProfile
|
|
|
|
- //{
|
|
|
|
- // Name = "Philips (2010-)",
|
|
|
|
- // ClientType = "DLNA",
|
|
|
|
-
|
|
|
|
- // Identification = new DeviceIdentification
|
|
|
|
- // {
|
|
|
|
- // FriendlyName = ".*PHILIPS.*",
|
|
|
|
- // ModelName = "WD TV HD Live"
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // DirectPlayProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3,wma",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "avi",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mkv",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // MediaProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="avi",
|
|
|
|
- // MimeType = "video/avi",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new MediaProfile
|
|
|
|
- // {
|
|
|
|
- // Container ="mkv",
|
|
|
|
- // MimeType = "video/x-matroska",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //});
|
|
|
|
-
|
|
|
|
list.Add(new WdtvLiveProfile());
|
|
list.Add(new WdtvLiveProfile());
|
|
|
|
|
|
- //list.Add(new DeviceProfile
|
|
|
|
- //{
|
|
|
|
- // // Linksys DMA2100us does not need any transcoding of the formats we support statically
|
|
|
|
- // Name = "Linksys DMA2100",
|
|
|
|
- // ClientType = "DLNA",
|
|
|
|
-
|
|
|
|
- // Identification = new DeviceIdentification
|
|
|
|
- // {
|
|
|
|
- // ModelName = "DMA2100us"
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // DirectPlayProfiles = new[]
|
|
|
|
- // {
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "mp3,flac,m4a,wma",
|
|
|
|
- // Type = DlnaProfileType.Audio
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // new DirectPlayProfile
|
|
|
|
- // {
|
|
|
|
- // Container = "avi,mp4,mkv,ts",
|
|
|
|
- // Type = DlnaProfileType.Video
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //});
|
|
|
|
-
|
|
|
|
list.Add(new DenonAvrProfile());
|
|
list.Add(new DenonAvrProfile());
|
|
|
|
|
|
|
|
+ list.Add(new LinksysDMA2100Profile());
|
|
|
|
+
|
|
foreach (var item in list)
|
|
foreach (var item in list)
|
|
{
|
|
{
|
|
//_xmlSerializer.SerializeToFile(item, "d:\\" + _fileSystem.GetValidFilename(item.Name) + ".xml");
|
|
//_xmlSerializer.SerializeToFile(item, "d:\\" + _fileSystem.GetValidFilename(item.Name) + ".xml");
|