1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Hide hardware acceleration type in playstats

This commit is contained in:
gnattu 2024-09-09 16:41:02 +08:00
parent 49ae4c3f40
commit db972f84dc

View file

@ -172,12 +172,17 @@ function getTranscodingStats(session, player, displayPlayMethod) {
value: session.TranscodingInfo.TranscodeReasons.map(translateReason).join('<br/>')
});
}
if (session.TranscodingInfo.HardwareAccelerationType) {
sessionStats.push({
label: globalize.translate('LabelHardwareEncoding'),
value: session.TranscodingInfo.HardwareAccelerationType
});
}
// Hide this for now because it is not useful in its current state.
// This only reflects the configuration in the dashboard, but the actual
// decoder/encoder selection is more complex. As a result, the hardware
// encoder may not be used even if hardware acceleration is configured,
// making the display of hardware acceleration misleading.
// if (session.TranscodingInfo.HardwareAccelerationType) {
// sessionStats.push({
// label: globalize.translate('LabelHardwareEncoding'),
// value: session.TranscodingInfo.HardwareAccelerationType
// });
// }
}
return sessionStats;