diff options
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 67af843626..2d1bed4b85 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -12,6 +12,7 @@ using Jellyfin.Extensions; using MediaBrowser.Model.Dlna; using MediaBrowser.Model.Extensions; using MediaBrowser.Model.MediaInfo; +using MediaBrowser.Model.Session; namespace MediaBrowser.Model.Entities { @@ -701,6 +702,29 @@ namespace MediaBrowser.Model.Entities /// <value><c>true</c> if this instance is anamorphic; otherwise, <c>false</c>.</value> public bool? IsAnamorphic { get; set; } + /// <summary> + /// Gets or sets DirectPlay errors. + /// </summary> + /// <value>DirectPlay errors.</value> + public TranscodeReason? DirectPlayErrors { get; set; } + + /// <summary> + /// Gets a value indicating whether this instance is compatible with the device. + /// </summary> + /// <value><c>true</c> if this instance is compatible with the device; otherwise, <c>false</c>.</value> + public bool? SupportsDirectPlay + { + get + { + if (!DirectPlayErrors.HasValue) + { + return null; + } + + return DirectPlayErrors.Value == 0; + } + } + internal string GetResolutionText() { if (!Width.HasValue || !Height.HasValue) |
