2022-04-12 04:18:43 +08:00
|
|
|
import React from 'react';
|
2024-06-05 19:26:27 +08:00
|
|
|
import LocalEchoService from '/imports/ui/components/audio/local-echo/service';
|
2022-04-12 04:18:43 +08:00
|
|
|
import LocalEcho from '/imports/ui/components/audio/local-echo/component';
|
|
|
|
|
2024-05-29 21:26:11 +08:00
|
|
|
const LocalEchoContainer = (props) => {
|
2024-06-05 19:26:27 +08:00
|
|
|
const {
|
|
|
|
initialHearingState: settingsHearingState,
|
|
|
|
} = window.meetingClientSettings.public.media.localEchoTest;
|
2024-08-15 11:30:18 +08:00
|
|
|
const initialHearingState = settingsHearingState;
|
2024-05-29 21:26:11 +08:00
|
|
|
|
2024-06-05 19:26:27 +08:00
|
|
|
return (
|
|
|
|
<LocalEcho
|
|
|
|
{...props}
|
|
|
|
initialHearingState={initialHearingState}
|
|
|
|
playEchoStream={LocalEchoService.playEchoStream}
|
|
|
|
deattachEchoStream={LocalEchoService.deattachEchoStream}
|
|
|
|
shouldUseRTCLoopback={LocalEchoService.shouldUseRTCLoopback}
|
|
|
|
createAudioRTCLoopback={LocalEchoService.createAudioRTCLoopback}
|
2024-09-06 07:53:33 +08:00
|
|
|
setAudioSink={LocalEchoService.setAudioSink}
|
2024-06-05 19:26:27 +08:00
|
|
|
/>
|
|
|
|
);
|
2024-05-29 21:26:11 +08:00
|
|
|
};
|
2022-04-12 04:18:43 +08:00
|
|
|
|
2024-05-16 21:22:51 +08:00
|
|
|
export default LocalEchoContainer;
|