Add hardware encoding status to playback data

Resolves #6087
This commit is contained in:
Brandon Nguyen 2021-07-03 01:12:09 -07:00
parent 1dcf03e33c
commit 7e3c94d094
3 changed files with 4 additions and 0 deletions

View File

@ -212,3 +212,4 @@
- [Tim Hobbs](https://github.com/timhobbs)
- [SvenVandenbrande](https://github.com/SvenVandenbrande)
- [olsh](https://github.com/olsh)
- [gnuyent](https://github.com/gnuyent)

View File

@ -458,6 +458,7 @@ namespace Jellyfin.Api.Helpers
AudioChannels = state.OutputAudioChannels,
IsAudioDirect = EncodingHelper.IsCopyCodec(state.OutputAudioCodec),
IsVideoDirect = EncodingHelper.IsCopyCodec(state.OutputVideoCodec),
IsHardwareEncode = !string.IsNullOrEmpty(_serverConfigurationManager.GetEncodingOptions().HardwareAccelerationType),
TranscodeReasons = state.TranscodeReasons
});
}

View File

@ -34,6 +34,8 @@ namespace MediaBrowser.Model.Session
public int? AudioChannels { get; set; }
public bool IsHardwareEncode { get; set; }
public TranscodeReason[] TranscodeReasons { get; set; }
}
}