mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
save 3d format in xml
This commit is contained in:
parent
07e230c2eb
commit
934584313e
@ -4,11 +4,8 @@ namespace MediaBrowser.Model.Entities
|
|||||||
public enum Video3DFormat
|
public enum Video3DFormat
|
||||||
{
|
{
|
||||||
HalfSideBySide,
|
HalfSideBySide,
|
||||||
|
|
||||||
FullSideBySide,
|
FullSideBySide,
|
||||||
|
|
||||||
FullTopAndBottom,
|
FullTopAndBottom,
|
||||||
|
|
||||||
HalfTopAndBottom
|
HalfTopAndBottom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -425,6 +425,27 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
builder.Append("<Default>" + SecurityElement.Escape(stream.IsDefault.ToString()) + "</Default>");
|
builder.Append("<Default>" + SecurityElement.Escape(stream.IsDefault.ToString()) + "</Default>");
|
||||||
builder.Append("<Forced>" + SecurityElement.Escape(stream.IsForced.ToString()) + "</Forced>");
|
builder.Append("<Forced>" + SecurityElement.Escape(stream.IsForced.ToString()) + "</Forced>");
|
||||||
|
|
||||||
|
var video = item as Video;
|
||||||
|
|
||||||
|
if (video != null && video.Video3DFormat.HasValue)
|
||||||
|
{
|
||||||
|
switch (video.Video3DFormat.Value)
|
||||||
|
{
|
||||||
|
case Video3DFormat.FullSideBySide:
|
||||||
|
builder.Append("<3DFormat>FSBS</3DFormat>");
|
||||||
|
break;
|
||||||
|
case Video3DFormat.FullTopAndBottom:
|
||||||
|
builder.Append("<3DFormat>FTAB</3DFormat>");
|
||||||
|
break;
|
||||||
|
case Video3DFormat.HalfSideBySide:
|
||||||
|
builder.Append("<3DFormat>HSBS</3DFormat>");
|
||||||
|
break;
|
||||||
|
case Video3DFormat.HalfTopAndBottom:
|
||||||
|
builder.Append("<3DFormat>HTAB</3DFormat>");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
builder.Append("</Video>");
|
builder.Append("</Video>");
|
||||||
}
|
}
|
||||||
else if (stream.Type == MediaStreamType.Audio)
|
else if (stream.Type == MediaStreamType.Audio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user