Update latency levels

This commit is contained in:
Gabe Kangas 2021-05-05 17:19:12 -07:00
parent 41d4f2069c
commit 7254a8ee09

View file

@ -19,21 +19,19 @@ import FormStatusIndicator from './form-status-indicator';
const { Title } = Typography; const { Title } = Typography;
const SLIDER_MARKS = { const SLIDER_MARKS = {
1: 'Low', 0: 'Lowest',
1: '',
2: '', 2: '',
3: '', 3: '',
4: '', 4: 'Highest',
5: '',
6: 'High',
}; };
const SLIDER_COMMENTS = { const SLIDER_COMMENTS = {
1: 'Lowest latency, lowest error tolerance', 0: 'Lowest latency, lowest error tolerance (Not recommended)',
2: 'Low latency, low error tolerance', 1: 'Low latency, low error tolerance',
3: 'Lower latency, lower error tolerance', 2: 'Medium latency, medium error tolerance (Default)',
4: 'Medium latency, medium error tolerance (Default)', 3: 'High latency, high error tolerance',
5: 'Higher latency, higher error tolerance', 4: 'Highest latency, highest error tolerance',
6: 'Highest latency, highest error tolerance',
}; };
export default function VideoLatency() { export default function VideoLatency() {
@ -120,8 +118,8 @@ export default function VideoLatency() {
<Slider <Slider
tipFormatter={value => SLIDER_COMMENTS[value]} tipFormatter={value => SLIDER_COMMENTS[value]}
onChange={handleChange} onChange={handleChange}
min={1} min={0}
max={6} max={4}
marks={SLIDER_MARKS} marks={SLIDER_MARKS}
defaultValue={selectedOption} defaultValue={selectedOption}
value={selectedOption} value={selectedOption}