Support passthrough in video settings + link to docs

This commit is contained in:
Gabe Kangas
2021-02-20 16:08:59 -08:00
parent 0c730eedac
commit 03df7fecba
3 changed files with 32 additions and 9 deletions

View File

@@ -135,14 +135,14 @@ export default function CurrentVariantsTable() {
title: 'Video bitrate',
dataIndex: 'videoBitrate',
key: 'videoBitrate',
render: (bitrate: number) => (!bitrate ? 'Same as source' : `${bitrate} kbps`),
render: (bitrate: number, variant: VideoVariant) => (!bitrate || variant.videoPassthrough ? 'Same as source' : `${bitrate} kbps`),
},
{
title: 'CPU Usage',
dataIndex: 'cpuUsageLevel',
key: 'cpuUsageLevel',
render: (level: string) => (!level ? 'n/a' : CPU_USAGE_LEVEL_MAP[level]),
render: (level: string, variant: VideoVariant) => (!level || variant.videoPassthrough ? 'n/a' : CPU_USAGE_LEVEL_MAP[level]),
},
{
title: '',