Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposition to change handler for web camera HTTP access errors. #32

Closed
sashabrava opened this issue Jul 16, 2019 · 3 comments
Closed

Comments

@sashabrava
Copy link

There seem to be a small issue with the page of webcamera check http://ip_address:5080/openmeetings/hash?app=settings.
As far as I've tested, Chrome 75 shows error enumerateDevices() not supported. because navigator.mediaDevices object is null.
Firefox 68 shows error NotAllowedError: The request is not allowed by the user agent or the platform in the current context and navigator.mediaDevices is not null.

However, the page works fine in both browsers on 5443 port.

The reason seem to be described on https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Security - if the context isn't secure, web camera access wouldn't work well.
Maybe it worth checking the value of window.isSecureContext and offering user to switch on HTTPS?

@solomax
Copy link
Contributor

solomax commented Jul 17, 2019

Port 5080 should be used for front-end proxy only
I can't offer user to switch to secure port due to I have no idea which port was configured as secure :(
I can show error stating "Camera/microphone will not work in insecure environment"
Would it be sufficient?

@sashabrava
Copy link
Author

Yes, such error description is clear.

@solomax
Copy link
Contributor

solomax commented Jul 18, 2019

Should be fixed, please check latest SNAPSHOT build :)

@solomax solomax closed this as completed Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants