Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

multiple-video-devices doesnt work #33

Open
IamShubhamGupto opened this issue Mar 30, 2022 · 2 comments
Open

multiple-video-devices doesnt work #33

IamShubhamGupto opened this issue Mar 30, 2022 · 2 comments

Comments

@IamShubhamGupto
Copy link

IamShubhamGupto commented Mar 30, 2022

Pop up
User media request denied with error: OverconstrainedError

Console
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.

demo doesnt seem to work. please provide an fix, would be very helpful

Tested on Microsoft edge, Chrome, Brave

@IamShubhamGupto
Copy link
Author

UPDATE
If i first start https://webrtc.github.io/test-pages/src/multiple-video/ and then the multiple-video-devices. Then it works fine. But if i directly start multiple-video-devices (through the hosted site / locally) it gives the above error.

Why does this happen and how to fix it

@IamShubhamGupto
Copy link
Author

UPDATE
On running the code locally, I found that the line

video: {deviceId: {exact: id}},
is what is causing the issue. Instead if I change it tovideo: {deviceId: id}, I am able to load 1 camera at a time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant