mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
set MediaSource SupportsDirectStream
This commit is contained in:
@@ -275,7 +275,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
if (directPlayProfile != null)
|
||||
{
|
||||
// While options takes the network and other factors into account. Only applies to direct stream
|
||||
if (IsAudioEligibleForDirectPlay(item, options.GetMaxBitrate()))
|
||||
if (item.SupportsDirectStream && IsAudioEligibleForDirectPlay(item, options.GetMaxBitrate()))
|
||||
{
|
||||
playMethods.Add(PlayMethod.DirectStream);
|
||||
}
|
||||
@@ -581,6 +581,11 @@ namespace MediaBrowser.Model.Dlna
|
||||
return PlayMethod.DirectPlay;
|
||||
}
|
||||
}
|
||||
|
||||
if (!mediaSource.SupportsDirectStream)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return PlayMethod.DirectStream;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace MediaBrowser.Model.Dto
|
||||
public long? RunTimeTicks { get; set; }
|
||||
public bool ReadAtNativeFramerate { get; set; }
|
||||
public bool SupportsTranscoding { get; set; }
|
||||
public bool SupportsDirectStream { get; set; }
|
||||
|
||||
public VideoType? VideoType { get; set; }
|
||||
|
||||
@@ -47,6 +48,7 @@ namespace MediaBrowser.Model.Dto
|
||||
RequiredHttpHeaders = new Dictionary<string, string>();
|
||||
PlayableStreamFileNames = new List<string>();
|
||||
SupportsTranscoding = true;
|
||||
SupportsDirectStream = true;
|
||||
}
|
||||
|
||||
public int? DefaultAudioStreamIndex { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user