If we can, present webcam devices before initial video sharing #29
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nonshy/website#29
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
On the "Share webcam" initial modal before the video devices are activated, if we can, it could be nice to present the video/audio source device picker drop-downs.
The complicating factor: a web page is only allowed to get the names of your devices after the user has already given the page permission for their camera/audio devices. Before permission is granted, a page can only get the device IDs but not their names, and these aren't useful for anybody.
It's why currently, the initial webcam modal doesn't have a device picker and after you activate your cam, the chat settings will get your device lists so you can switch them after: we're guaranteed able to get their names then because the user has for sure granted permission.
What we could do for the initial webcam modal is: in case the current user has already granted permission (because they went on in the past and told their browser to remember the permission), get and show their device names then. If we can't get the names (first time user, or permission not remembered), don't show the device pickers and do what it currently does.