Skip to content

Commit

Permalink
feat: remember device selection
Browse files Browse the repository at this point in the history
  • Loading branch information
triptu committed Oct 7, 2022
1 parent e194353 commit 1557c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ Adapting [React Quickstart](https://www.100ms.live/docs/javascript/v2/guides/rea
11. Implement Conference, create a stub Peer.Svelte. Peer.svelte will use the Video.svelte file to render video and additionally show more details related to the peer.
12. Implement Peer Component using Video and showing the peer name
13. Implement Video component to render video. Also make iterating over peers [keyed](https://svelte.dev/tutorial/keyed-each-blocks).
14.
14. Make Join remember device selection. If you don't see proper camera selected, you can run `await navigator.mediaDevices.enumerateDevices()
09:55:27.108` to get a list of all devices, choose the correct device id for the camera and then run - `__hms.actions.setVideoSettings({deviceId: "<device id>"})`
15.
2 changes: 1 addition & 1 deletion src/routes/JoinForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let token = '';
function join() {
hmsActions.join({ userName: name, authToken: token });
hmsActions.join({ userName: name, authToken: token, rememberDeviceSelection: true });
}
</script>

Expand Down

0 comments on commit 1557c88

Please sign in to comment.