Add hardware encoding status to playback data

Resolves #6087
pull/6258/head
Brandon Nguyen 3 years ago
parent 1dcf03e33c
commit 7e3c94d094

@ -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)

@ -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
});
}

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

Loading…
Cancel
Save