If we can, present webcam devices before initial video sharing #29

Closed
opened 2023-08-18 02:00:38 +00:00 by noah · 0 comments

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.

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.
noah added the
enhancement
label 2023-08-18 02:00:38 +00:00
noah closed this issue 2023-08-18 05:48:38 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nonshy/website#29
There is no content yet.