Replace presets with cpu usage levels

This commit is contained in:
Gabe Kangas
2021-01-30 22:53:00 -08:00
parent 362c421d05
commit 0c111c2c0b
7 changed files with 81 additions and 55 deletions

View File

@@ -108,6 +108,14 @@ export default function CurrentVariantsTable() {
message: newStatusMessage = '',
} = SUCCESS_STATES[submitStatus] || {};
const cpuUsageLevelLabelMap = {
1: 'lowest',
2: 'low',
3: 'medium',
4: 'high',
5: 'highest'
};
const videoQualityColumns: ColumnsType<VideoVariant> = [
{
title: "#",
@@ -123,11 +131,11 @@ export default function CurrentVariantsTable() {
},
{
title: "Encoder preset",
dataIndex: "encoderPreset",
key: "encoderPreset",
render: (preset: string) =>
!preset ? "n/a" : preset,
title: "CPU Usage",
dataIndex: "cpuUsageLevel",
key: "cpuUsageLevel",
render: (level: string) =>
!level ? "n/a" : cpuUsageLevelLabelMap[level],
},
{
title: '',