Compare commits

...

10 Commits

Author SHA1 Message Date
Timo K
88e7eb8cf6 Merge branch 'livekit' into toger5/disable_audio_output_choice
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 15:12:26 +02:00
Timo K
6069e13348 commit to maybe help github to find its sanity again.
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 15:07:23 +02:00
Timo K
0af272ac46 improove comment
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 14:59:22 +02:00
Timo K
fdbc47fdd0 cannot use lk isFireFox
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 13:09:01 +02:00
Timo K
f9618070a4 add the device selector back on other browsers
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 12:48:03 +02:00
Timo K
4120f34120 grammar...
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 12:43:02 +02:00
Timo K
7de9cfb5f2 ugh
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 12:42:33 +02:00
Timo K
02bf5f89e0 only on FF + code cleanup
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 12:40:53 +02:00
Timo K
8628123a53 disable audio output beeing anything else then undefined
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 12:13:45 +02:00
Timo K
b2d3f86357 start by disabeling the audioOutput selector
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 11:55:19 +02:00

View File

@@ -127,13 +127,15 @@ export const MediaDevicesProvider: FC<Props> = ({ children }) => {
const [numCallersUsingNames, setNumCallersUsingNames] = useState(0);
const usingNames = numCallersUsingNames > 0;
// Use output device names for output devices on all platforms except FF.
const useOutputNames = usingNames && !isFirefox();
// Setting the audio device to sth. else than 'undefined' breaks echo-cancellation
// Setting the audio device to something other than 'undefined' breaks echo-cancellation
// and even can introduce multiple different output devices for one call.
const alwaysUseDefaultAudio = isFirefox();
// On FF we dont need to query the names
// (call enumerateDevices + create meadia stream to trigger permissions)
// for ouput devices because the selector wont be shown on FF.
const useOutputNames = usingNames && !isFirefox();
const [audioInputSetting, setAudioInputSetting] = useAudioInput();
const [audioOutputSetting, setAudioOutputSetting] = useAudioOutput();
const [videoInputSetting, setVideoInputSetting] = useVideoInput();