From db972f84dc6021d703a9290382217af204c2c896 Mon Sep 17 00:00:00 2001 From: gnattu Date: Mon, 9 Sep 2024 16:41:02 +0800 Subject: [PATCH] Hide hardware acceleration type in playstats --- src/components/playerstats/playerstats.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/playerstats/playerstats.js b/src/components/playerstats/playerstats.js index 8d7d162c7d..4b130d00c9 100644 --- a/src/components/playerstats/playerstats.js +++ b/src/components/playerstats/playerstats.js @@ -172,12 +172,17 @@ function getTranscodingStats(session, player, displayPlayMethod) { value: session.TranscodingInfo.TranscodeReasons.map(translateReason).join('
') }); } - 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;