|
|
|
@ -213,13 +213,13 @@ namespace MediaBrowser.Dlna.Didl
|
|
|
|
|
// <sec:CaptionInfoEx sec:type="srt">http://192.168.1.3:9999/video.srt</sec:CaptionInfoEx>
|
|
|
|
|
// <sec:CaptionInfo sec:type="srt">http://192.168.1.3:9999/video.srt</sec:CaptionInfo>
|
|
|
|
|
|
|
|
|
|
//var res = container.OwnerDocument.CreateElement("SEC", "CaptionInfoEx");
|
|
|
|
|
var res = container.OwnerDocument.CreateElement("CaptionInfoEx", "sec");
|
|
|
|
|
|
|
|
|
|
//res.InnerText = info.Url;
|
|
|
|
|
res.InnerText = info.Url;
|
|
|
|
|
|
|
|
|
|
//// TODO: attribute needs SEC:
|
|
|
|
|
//res.SetAttribute("type", info.Format.ToLower());
|
|
|
|
|
//container.AppendChild(res);
|
|
|
|
|
res.SetAttribute("type", "sec", info.Format.ToLower());
|
|
|
|
|
container.AppendChild(res);
|
|
|
|
|
}
|
|
|
|
|
else if (string.Equals(subtitleMode, "smi", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|