update dlna profiles
This commit is contained in:
parent
3d574df6f0
commit
1f430baa1d
|
@ -76,9 +76,6 @@ namespace MediaBrowser.Dlna.Profiles
|
|||
Type = DlnaProfileType.Video
|
||||
}
|
||||
};
|
||||
|
||||
AddXmlRootAttribute("xmlns", "urn:schemas-upnp-org:device-1-0");
|
||||
AddXmlRootAttribute("xmlns:dlna", "urn:schemas-dlna-org:device-1-0");
|
||||
}
|
||||
|
||||
public void AddXmlRootAttribute(string name, string value)
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="avi,mpeg,mkv,ts,mp4,mov,m4v,asf,webm,ogg,ogv,iso" type="Video" />
|
||||
<DirectPlayProfile container="mp3,flac,asf,off,oga,aac" type="Audio" />
|
||||
|
|
|
@ -26,10 +26,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp3,wma" type="Audio" />
|
||||
<DirectPlayProfile container="avi,mp4" type="Video" />
|
||||
|
|
|
@ -31,10 +31,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp3,flac,m4a,wma" type="Audio" />
|
||||
</DirectPlayProfiles>
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>true</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>true</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mpeg" audioCodec="mp2" videoCodec="mpeg2video" type="Video" />
|
||||
<DirectPlayProfile container="jpeg,jpg" type="Photo" />
|
||||
|
|
|
@ -33,10 +33,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp4,mkv,mpeg,ts" audioCodec="mp3,ac3,aac,he-aac,pcm" videoCodec="h264,mpeg2video" type="Video" />
|
||||
<DirectPlayProfile container="mp3" audioCodec="mp3" type="Audio" />
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="ts" audioCodec="aac,ac3,mp3" videoCodec="h264" type="Video" />
|
||||
<DirectPlayProfile container="mkv" audioCodec="aac,ac3,mp3" videoCodec="h264" type="Video" />
|
||||
|
|
|
@ -30,10 +30,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp3,flac,m4a,wma" type="Audio" />
|
||||
<DirectPlayProfile container="avi,mp4,mkv,ts" type="Video" />
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp3" audioCodec="mp2,mp3" type="Audio" />
|
||||
<DirectPlayProfile container="mp4" audioCodec="mp4" type="Audio" />
|
||||
|
|
|
@ -33,9 +33,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:pv" value="http://www.pv.com/pvns/" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -26,10 +26,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp4,mov" audioCodec="aac" videoCodec="h264,mpeg4" type="Video" />
|
||||
<DirectPlayProfile container="ts" audioCodec="aac,ac3,eac3,mp3,mp2,pcm" videoCodec="h264" type="Video" />
|
||||
|
|
|
@ -32,9 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:sec" value="http://www.sec.co.kr/" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -32,9 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" />
|
||||
</XmlRootAttributes>
|
||||
<DirectPlayProfiles>
|
||||
|
|
|
@ -34,10 +34,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="avi" audioCodec="mp2,mp3" videoCodec="mpeg4" type="Video" />
|
||||
<DirectPlayProfile container="ts" audioCodec="ac3,mp2,mp3,aac" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="avi,mpeg,mkv,ts,mp4,mov,m4v,asf,webm,ogg,ogv,iso" type="Video" />
|
||||
<DirectPlayProfile container="mp3,flac,asf,off,oga,aac" type="Audio" />
|
||||
|
|
|
@ -33,10 +33,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>true</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="avi" audioCodec="ac3,dca,mp2,mp3,pcm" videoCodec="mpeg1video,mpeg2video,mpeg4,h264,vc1" type="Video" />
|
||||
<DirectPlayProfile container="mpeg" audioCodec="ac3,dca,mp2,mp3,pcm" videoCodec="mpeg1video,mpeg2video" type="Video" />
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
<RequiresPlainVideoItems>true</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>true</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>true</EnableMSMediaReceiverRegistrar>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
|
|
|
@ -33,10 +33,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="ts" audioCodec="ac3" videoCodec="h264" type="Video" />
|
||||
<DirectPlayProfile container="avi" audioCodec="ac3,mp3" videoCodec="mpeg4" type="Video" />
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
<RequiresPlainVideoItems>false</RequiresPlainVideoItems>
|
||||
<RequiresPlainFolders>false</RequiresPlainFolders>
|
||||
<EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
|
||||
<XmlRootAttributes>
|
||||
<XmlAttribute name="xmlns" value="urn:schemas-upnp-org:device-1-0" />
|
||||
<XmlAttribute name="xmlns:dlna" value="urn:schemas-dlna-org:device-1-0" />
|
||||
</XmlRootAttributes>
|
||||
<IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
|
||||
<XmlRootAttributes />
|
||||
<DirectPlayProfiles>
|
||||
<DirectPlayProfile container="mp3" audioCodec="mp2,mp3" type="Audio" />
|
||||
<DirectPlayProfile container="mp4" audioCodec="mp4" type="Audio" />
|
||||
|
|
|
@ -51,10 +51,25 @@ namespace MediaBrowser.Dlna.Server
|
|||
builder.Append("<?xml version=\"1.0\"?>");
|
||||
|
||||
builder.Append("<root");
|
||||
foreach (var att in _profile.XmlRootAttributes)
|
||||
|
||||
var attributes = _profile.XmlRootAttributes.ToList();
|
||||
|
||||
attributes.Insert(0, new XmlAttribute
|
||||
{
|
||||
Name = "xmlns:dlna",
|
||||
Value = "urn:schemas-dlna-org:device-1-0"
|
||||
});
|
||||
attributes.Insert(0, new XmlAttribute
|
||||
{
|
||||
Name = "xmlns",
|
||||
Value = "urn:schemas-upnp-org:device-1-0"
|
||||
});
|
||||
|
||||
foreach (var att in attributes)
|
||||
{
|
||||
builder.AppendFormat(" {0}=\"{1}\"", att.Name, att.Value);
|
||||
}
|
||||
|
||||
builder.Append(">");
|
||||
|
||||
builder.Append("<specVersion>");
|
||||
|
@ -74,7 +89,7 @@ namespace MediaBrowser.Dlna.Server
|
|||
builder.Append("<device>");
|
||||
AppendDeviceProperties(builder);
|
||||
|
||||
//AppendIconList(builder);
|
||||
AppendIconList(builder);
|
||||
AppendServiceList(builder);
|
||||
builder.Append("</device>");
|
||||
}
|
||||
|
@ -83,25 +98,19 @@ namespace MediaBrowser.Dlna.Server
|
|||
{
|
||||
builder.Append("<UDN>uuid:" + SecurityElement.Escape(_serverUdn) + "</UDN>");
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(_profile.XDlnaCap))
|
||||
{
|
||||
builder.Append("<dlna:X_DLNACAP>" + SecurityElement.Escape(_profile.XDlnaCap ?? string.Empty) + "</dlna:X_DLNACAP>");
|
||||
}
|
||||
builder.Append("<dlna:X_DLNACAP>" + SecurityElement.Escape(_profile.XDlnaCap ?? string.Empty) + "</dlna:X_DLNACAP>");
|
||||
|
||||
builder.Append("<dlna:X_DLNADOC xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">M-DMS-1.50</dlna:X_DLNADOC>");
|
||||
builder.Append("<dlna:X_DLNADOC xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">" + SecurityElement.Escape(_profile.XDlnaDoc ?? string.Empty) + "</dlna:X_DLNADOC>");
|
||||
|
||||
|
||||
builder.Append("<friendlyName>" + SecurityElement.Escape(GetFriendlyName()) + "</friendlyName>");
|
||||
builder.Append("<deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>");
|
||||
builder.Append("<manufacturer>" + SecurityElement.Escape(_profile.Manufacturer ?? string.Empty) + "</manufacturer>");
|
||||
builder.Append("<manufacturerURL>" + SecurityElement.Escape(_profile.ManufacturerUrl ?? string.Empty) + "</manufacturerURL>");
|
||||
builder.Append("<modelName>" + SecurityElement.Escape(_profile.ModelName ?? string.Empty) + "</modelName>");
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(_profile.ModelDescription))
|
||||
{
|
||||
builder.Append("<modelDescription>" + SecurityElement.Escape(_profile.ModelDescription ?? string.Empty) + "</modelDescription>");
|
||||
}
|
||||
|
||||
builder.Append("<modelDescription>" + SecurityElement.Escape(_profile.ModelDescription ?? string.Empty) + "</modelDescription>");
|
||||
|
||||
builder.Append("<modelNumber>" + SecurityElement.Escape(_profile.ModelNumber ?? string.Empty) + "</modelNumber>");
|
||||
builder.Append("<modelURL>" + SecurityElement.Escape(_profile.ModelUrl ?? string.Empty) + "</modelURL>");
|
||||
|
||||
|
|
|
@ -8,37 +8,37 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace MediaBrowser.Server.Implementations.Photos
|
||||
{
|
||||
//public class PhotoAlbumImageProvider : IDynamicImageProvider
|
||||
//{
|
||||
// public IEnumerable<ImageType> GetSupportedImages(IHasImages item)
|
||||
// {
|
||||
// return new List<ImageType> { ImageType.Primary };
|
||||
// }
|
||||
public class PhotoAlbumImageProvider : IDynamicImageProvider
|
||||
{
|
||||
public IEnumerable<ImageType> GetSupportedImages(IHasImages item)
|
||||
{
|
||||
return new List<ImageType> { ImageType.Primary };
|
||||
}
|
||||
|
||||
// public Task<DynamicImageResponse> GetImage(IHasImages item, ImageType type, CancellationToken cancellationToken)
|
||||
// {
|
||||
// var album = (PhotoAlbum)item;
|
||||
public Task<DynamicImageResponse> GetImage(IHasImages item, ImageType type, CancellationToken cancellationToken)
|
||||
{
|
||||
var album = (PhotoAlbum)item;
|
||||
|
||||
// var image = album.Children
|
||||
// .OfType<Photo>()
|
||||
// .Select(i => i.GetImagePath(type))
|
||||
// .FirstOrDefault(i => !string.IsNullOrEmpty(i));
|
||||
var image = album.Children
|
||||
.OfType<Photo>()
|
||||
.Select(i => i.GetImagePath(type))
|
||||
.FirstOrDefault(i => !string.IsNullOrEmpty(i));
|
||||
|
||||
// return Task.FromResult(new DynamicImageResponse
|
||||
// {
|
||||
// Path = image,
|
||||
// HasImage = !string.IsNullOrEmpty(image)
|
||||
// });
|
||||
// }
|
||||
return Task.FromResult(new DynamicImageResponse
|
||||
{
|
||||
Path = image,
|
||||
HasImage = !string.IsNullOrEmpty(image)
|
||||
});
|
||||
}
|
||||
|
||||
// public string Name
|
||||
// {
|
||||
// get { return "Image Extractor"; }
|
||||
// }
|
||||
public string Name
|
||||
{
|
||||
get { return "Image Extractor"; }
|
||||
}
|
||||
|
||||
// public bool Supports(IHasImages item)
|
||||
// {
|
||||
// return item is PhotoAlbum;
|
||||
// }
|
||||
//}
|
||||
public bool Supports(IHasImages item)
|
||||
{
|
||||
return item is PhotoAlbum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1665,6 +1665,9 @@
|
|||
<Content Include="dashboard-ui\thirdparty\jstree3.0.8\themes\default\throbber.gif">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\thirdparty\masonry.pkgd.min.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\thirdparty\require.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System.Reflection;
|
||||
|
||||
//[assembly: AssemblyVersion("3.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.5607.1")]
|
||||
[assembly: AssemblyVersion("3.0.*")]
|
||||
//[assembly: AssemblyVersion("3.0.5607.1")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user