@@ -17,7 +17,6 @@ import {
17
17
} from '@material-ui/core' ;
18
18
import { makeStyles } from '@material-ui/core/styles' ;
19
19
import { inputLabels , Settings } from '../../state/settings/settingsReducer' ;
20
- import { RenderDimensions } from '../../state/settings/renderDimensions' ;
21
20
import { useAppState } from '../../state' ;
22
21
import useRoomState from '../../hooks/useRoomState/useRoomState' ;
23
22
@@ -54,12 +53,6 @@ const useStyles = makeStyles((theme: Theme) => ({
54
53
55
54
const withDefault = ( val ?: string ) => ( typeof val === 'undefined' ? 'default' : val ) ;
56
55
57
- const RenderDimensionItems = RenderDimensions . map ( ( { label, value } ) => (
58
- < MenuItem value = { value } key = { value } >
59
- { label }
60
- </ MenuItem >
61
- ) ) ;
62
-
63
56
export default function ConnectionOptionsDialog ( { open, onClose } : { open : boolean ; onClose : ( ) => void } ) {
64
57
const classes = useStyles ( ) ;
65
58
const { settings, dispatchSetting } = useAppState ( ) ;
@@ -143,80 +136,51 @@ export default function ConnectionOptionsDialog({ open, onClose }: { open: boole
143
136
< MenuItem value = "default" > Server Default</ MenuItem >
144
137
</ Select >
145
138
</ FormControl >
146
-
147
- < FormControl className = { classes . formControl } >
148
- < TextField
149
- disabled = { isDisabled }
150
- fullWidth
151
- id = { inputLabels . maxTracks }
152
- label = "Max Tracks"
153
- placeholder = "Leave blank for no limit"
154
- name = { inputLabels . maxTracks }
155
- value = { withDefault ( settings . maxTracks ) }
156
- onChange = { handleNumberChange }
157
- />
158
- </ FormControl >
159
-
160
- < FormControl className = { classes . formControl } >
161
- < TextField
162
- disabled = { isDisabled }
163
- fullWidth
164
- id = { inputLabels . maxAudioBitrate }
165
- label = "Max Audio Bitrate"
166
- placeholder = "Leave blank for no limit"
167
- name = { inputLabels . maxAudioBitrate }
168
- value = { withDefault ( settings . maxAudioBitrate ) }
169
- onChange = { handleNumberChange }
170
- />
171
- </ FormControl >
172
139
</ Grid >
173
140
< Grid item sm = { 6 } xs = { 12 } >
174
- < FormControl fullWidth className = { classes . formControl } >
175
- < InputLabel id = { inputLabels . renderDimensionLow } className = { classes . label } >
176
- Render Dimension (Low Priority):
177
- </ InputLabel >
141
+ < FormControl className = { classes . formControl } >
142
+ < InputLabel id = { inputLabels . clientTrackSwitchOffControl } > Client Track Switch Off Control:</ InputLabel >
178
143
< Select
179
144
fullWidth
180
145
disabled = { isDisabled }
181
- name = { inputLabels . renderDimensionLow }
182
- label = { inputLabels . renderDimensionLow }
183
- value = { withDefault ( settings . renderDimensionLow ) }
146
+ name = { inputLabels . clientTrackSwitchOffControl }
147
+ label = { inputLabels . clientTrackSwitchOffControl }
148
+ value = { withDefault ( settings . clientTrackSwitchOffControl ) }
184
149
onChange = { handleChange }
185
150
>
186
- { RenderDimensionItems }
151
+ < MenuItem value = "auto" > Auto</ MenuItem >
152
+ < MenuItem value = "manual" > Manual</ MenuItem >
153
+ < MenuItem value = "default" > Default</ MenuItem >
187
154
</ Select >
188
155
</ FormControl >
189
156
190
- < FormControl fullWidth className = { classes . formControl } >
191
- < InputLabel id = { inputLabels . renderDimensionStandard } className = { classes . label } >
192
- Render Dimension (Standard Priority):
193
- </ InputLabel >
157
+ < FormControl className = { classes . formControl } >
158
+ < InputLabel id = { inputLabels . contentPreferencesMode } > Content Preferences Mode:</ InputLabel >
194
159
< Select
195
160
fullWidth
196
161
disabled = { isDisabled }
197
- name = { inputLabels . renderDimensionStandard }
198
- label = { inputLabels . renderDimensionStandard }
199
- value = { withDefault ( settings . renderDimensionStandard ) }
162
+ name = { inputLabels . contentPreferencesMode }
163
+ label = { inputLabels . contentPreferencesMode }
164
+ value = { withDefault ( settings . contentPreferencesMode ) }
200
165
onChange = { handleChange }
201
166
>
202
- { RenderDimensionItems }
167
+ < MenuItem value = "auto" > Auto</ MenuItem >
168
+ < MenuItem value = "manual" > Manual</ MenuItem >
169
+ < MenuItem value = "default" > Default</ MenuItem >
203
170
</ Select >
204
171
</ FormControl >
205
172
206
- < FormControl fullWidth className = { classes . formControl } >
207
- < InputLabel id = { inputLabels . renderDimensionHigh } className = { classes . label } >
208
- Render Dimension (High Priority):
209
- </ InputLabel >
210
- < Select
211
- fullWidth
173
+ < FormControl className = { classes . formControl } >
174
+ < TextField
212
175
disabled = { isDisabled }
213
- name = { inputLabels . renderDimensionHigh }
214
- label = { inputLabels . renderDimensionHigh }
215
- value = { withDefault ( settings . renderDimensionHigh ) }
216
- onChange = { handleChange }
217
- >
218
- { RenderDimensionItems }
219
- </ Select >
176
+ fullWidth
177
+ id = { inputLabels . maxAudioBitrate }
178
+ label = "Max Audio Bitrate"
179
+ placeholder = "Leave blank for no limit"
180
+ name = { inputLabels . maxAudioBitrate }
181
+ value = { withDefault ( settings . maxAudioBitrate ) }
182
+ onChange = { handleNumberChange }
183
+ />
220
184
</ FormControl >
221
185
</ Grid >
222
186
</ Grid >
0 commit comments