diff --git a/src/components/playground/Playground.tsx b/src/components/playground/Playground.tsx index 77d3cc2f..4cba8e44 100644 --- a/src/components/playground/Playground.tsx +++ b/src/components/playground/Playground.tsx @@ -69,8 +69,16 @@ export default function Playground({ useEffect(() => { if (roomState === ConnectionState.Connected) { - localParticipant.setCameraEnabled(config.settings.inputs.camera); - localParticipant.setMicrophoneEnabled(config.settings.inputs.mic); + localParticipant.setCameraEnabled( + config.settings.inputs.camera, + undefined, + { name: "camera" } + ); + localParticipant.setMicrophoneEnabled( + config.settings.inputs.mic, + undefined, + { name: "mic" } + ); } }, [config, localParticipant, roomState]);