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

Cancelling a screenshare and not having system permissions has the same error message #102

Open
quuu opened this issue Mar 12, 2021 · 0 comments

Comments

@quuu
Copy link

quuu commented Mar 12, 2021

When I .publish with "videoSource: application" to trigger the screen share prompt, whether I disallowed permission in my system preferences and try to screenshare (first screenshot), or press cancel on the prompt (second screenshot), they both throw the same error.

{"code":1500,"message":"OT.Publisher Access Denied: Permission Denied: End-user denied permission to hardware devices (getUserMedia error: NotAllowedError)","name":"OT_USER_MEDIA_ACCESS_DENIED","stack":"Error: End-user denied permission to hardware devices (getUserMedia error: NotAllowedError)

This makes it hard to give the user a warning and instructions on how to enable screenshare system permissions it could potentially be just them opening and closing the screenshare dialog. Are there other ways to detect whether there is system permissions or not to screenshare?

Using the underlying OT.checkScreenSharingCapability() method, it always returns "supported: true" even without system permissions enabled. It seems like that method just checks the browser version instead of if it can actually access the screen?

image

image

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

1 participant