9070a651ec
Commit 325887e325
split the local echo audio
element from the main audio element to allow concurrent playback without the
risk of interfering with one another.
This introduced a regression where local echo doesn't track output device
changes. The main audio element (i.e. the meeting's audio) is not affected by
this regression.
This commit ensures local echo reacts to output device changes as needed.
25 lines
845 B
JavaScript
25 lines
845 B
JavaScript
import React from 'react';
|
|
import LocalEchoService from '/imports/ui/components/audio/local-echo/service';
|
|
import LocalEcho from '/imports/ui/components/audio/local-echo/component';
|
|
|
|
const LocalEchoContainer = (props) => {
|
|
const {
|
|
initialHearingState: settingsHearingState,
|
|
} = window.meetingClientSettings.public.media.localEchoTest;
|
|
const initialHearingState = settingsHearingState;
|
|
|
|
return (
|
|
<LocalEcho
|
|
{...props}
|
|
initialHearingState={initialHearingState}
|
|
playEchoStream={LocalEchoService.playEchoStream}
|
|
deattachEchoStream={LocalEchoService.deattachEchoStream}
|
|
shouldUseRTCLoopback={LocalEchoService.shouldUseRTCLoopback}
|
|
createAudioRTCLoopback={LocalEchoService.createAudioRTCLoopback}
|
|
setAudioSink={LocalEchoService.setAudioSink}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default LocalEchoContainer;
|