Device from lobby to call (#1110)
* respect mute state set in lobby for call Signed-off-by: Timo K <toger5@hotmail.de> * move device from lobby to call Signed-off-by: Timo K <toger5@hotmail.de> * save device in local storage Signed-off-by: Timo K <toger5@hotmail.de> * local storage + fixes Signed-off-by: Timo K <toger5@hotmail.de> * device permissions Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -165,6 +165,13 @@ export function InCallView({
|
||||
options
|
||||
);
|
||||
|
||||
// TODO: move the room creation into the useRoom hook and out of the useLiveKit hook.
|
||||
// This would than allow to not have those 4 lines
|
||||
livekitRoom.options.audioCaptureDefaults.deviceId =
|
||||
mediaDevices.state.get("audioinput").selectedId;
|
||||
livekitRoom.options.videoCaptureDefaults.deviceId =
|
||||
mediaDevices.state.get("videoinput").selectedId;
|
||||
// Uses a hook to connect to the LiveKit room (on unmount the room will be left) and publish local media tracks (default).
|
||||
useRoom({
|
||||
token,
|
||||
serverUrl: Config.get().livekit.server_url,
|
||||
|
||||
Reference in New Issue
Block a user