From 9a5f40baa0dfa3e0317ce876785d666e2aff060a Mon Sep 17 00:00:00 2001 From: Robert Long Date: Mon, 29 Nov 2021 14:35:32 -0800 Subject: [PATCH] Change devices in room setup screen --- src/Room.jsx | 55 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/src/Room.jsx b/src/Room.jsx index 045ad560..f4c0f710 100644 --- a/src/Room.jsx +++ b/src/Room.jsx @@ -182,6 +182,7 @@ export function GroupCallView({ client, groupCall, simpleGrid }) { } else { return ( { onInitLocalCallFeed(); }, [onInitLocalCallFeed]); @@ -263,14 +274,32 @@ function RoomSetupView({ {state === GroupCallState.LocalCallFeedInitialized && (
- - + setAudioInput(value)} + options={audioInputs.map(({ label, deviceId }) => ({ + label, + value: deviceId, + }))} + > + + + setVideoInput(value)} + options={videoInputs.map(({ label, deviceId }) => ({ + label, + value: deviceId, + }))} + > + +
)}