mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update stream building
This commit is contained in:
parent
31a3e0f5c4
commit
f2fb52761f
@ -92,7 +92,20 @@ namespace MediaBrowser.Controller.LiveTv
|
|||||||
|
|
||||||
public override double? GetDefaultPrimaryImageAspectRatio()
|
public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
{
|
||||||
return null;
|
if (IsMovie)
|
||||||
|
{
|
||||||
|
double value = 2;
|
||||||
|
value /= 3;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
double value = 2;
|
||||||
|
value /= 3;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetClientTypeName()
|
public override string GetClientTypeName()
|
||||||
|
@ -108,6 +108,24 @@ namespace MediaBrowser.Controller.LiveTv
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
|
{
|
||||||
|
if (IsMovie)
|
||||||
|
{
|
||||||
|
double value = 2;
|
||||||
|
value /= 3;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
double value = 2;
|
||||||
|
value /= 3;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public override bool SupportsLocalMetadata
|
public override bool SupportsLocalMetadata
|
||||||
{
|
{
|
||||||
|
@ -550,7 +550,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
if (audioStream != null && !audioSupported)
|
if (audioStream != null && !audioSupported)
|
||||||
{
|
{
|
||||||
list.Add(TranscodeReason.VideoCodecNotSupported);
|
list.Add(TranscodeReason.AudioCodecNotSupported);
|
||||||
}
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
ChannelUp = 30,
|
ChannelUp = 30,
|
||||||
ChannelDown = 31,
|
ChannelDown = 31,
|
||||||
SetMaxStreamingBitrate = 31,
|
SetMaxStreamingBitrate = 31,
|
||||||
Guide = 32
|
Guide = 32,
|
||||||
|
ToggleStats = 33
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user