@@ -405,6 +405,33 @@ export class UIController {
405
405
noiseSuppressionContainer . appendChild ( noiseSuppressionCheckboxLabel ) ;
406
406
}
407
407
408
+ generateStereoInputUI ( userData : UserData ) {
409
+ if ( userData . visitIDHash !== userDataController . myAvatar . myUserData . visitIDHash || typeof ( userData . stereoInput ) !== "boolean" ) {
410
+ return ;
411
+ }
412
+
413
+ let stereoInputContainer = document . createElement ( "div" ) ;
414
+ stereoInputContainer . classList . add ( "stereoInputContainer" ) ;
415
+ this . avatarContextMenu . appendChild ( stereoInputContainer ) ;
416
+
417
+ let stereoInputCheckbox = document . createElement ( "input" ) ;
418
+ stereoInputCheckbox . id = "stereoInputCheckbox" ;
419
+ stereoInputCheckbox . classList . add ( "stereoInputCheckbox" ) ;
420
+ stereoInputCheckbox . type = "checkbox" ;
421
+ stereoInputCheckbox . checked = userData . stereoInput ;
422
+ stereoInputCheckbox . addEventListener ( "click" , ( e ) => {
423
+ let newStereoInputStatus = ( < HTMLInputElement > e . target ) . checked ;
424
+ userInputController . setStereoInputStatus ( newStereoInputStatus )
425
+ } ) ;
426
+ stereoInputContainer . appendChild ( stereoInputCheckbox ) ;
427
+
428
+ let stereoInputCheckboxLabel = document . createElement ( "label" ) ;
429
+ stereoInputCheckboxLabel . setAttribute ( "for" , "stereoInputCheckbox" ) ;
430
+ stereoInputCheckboxLabel . classList . add ( "stereoInputCheckboxLabel" ) ;
431
+ stereoInputCheckboxLabel . innerHTML = "Stereo Input" ;
432
+ stereoInputContainer . appendChild ( stereoInputCheckboxLabel ) ;
433
+ }
434
+
408
435
generateUserGainForThisConnectionUI ( userData : UserData ) {
409
436
let hifiCommunicator = connectionController . hifiCommunicator ;
410
437
@@ -546,6 +573,7 @@ export class UIController {
546
573
this . generateEchoCancellationUI ( userData ) ;
547
574
this . generateAGCUI ( userData ) ;
548
575
this . generateNoiseSuppressionUI ( userData ) ;
576
+ this . generateStereoInputUI ( userData ) ;
549
577
this . generateUserGainForThisConnectionUI ( userData ) ;
550
578
this . generateHiFiGainUI ( userData ) ;
551
579
this . generateVolumeThresholdUI ( userData ) ;
0 commit comments