isDevicePermissionGranted should return something else than false when it can't detect permissions
See original GitHub issueThe method isDevicePermissionGranted
on JitsiMeetJS.mediaDevices
currently returns true
or false
when permission is granted or not.
Some browsers don’t support the required APIs (Safari…) and the method returns false
all the time. So, if you planned to display a warning in case permission is not granted, it is always displayed on those browsers…
I’d like to suggest that the method should return a third value, null
, when it can’t detect the permissions.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
returning user instead of True or False in Django Permission ...
As long as user is not empty it will return True . By default, an object is considered true unless its class defines...
Read more >Jitsi - Bountysource
Before posting, I checked community.jitsi.org to see if the same or similar ... isDevicePermissionGranted should return something else than false when it ...
Read more >lib-jitsi-meet API (low level) - GitHub Pages
isDevicePermissionGranted(type) - returns a Promise which resolves to true if user granted permission to media devices. type - 'audio', 'video' or undefined ....
Read more >Permissions - W3C
The Permissions specification defines common infrastructure for other specifications that need to interact with browser permissions.
Read more >Permissions - Directus Docs
What CRUD operation this permission rule applies to. ... permissions for a role other than the current user's role won't be returned.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m afraid there is no way to know that in Firefox without trying. They don’t implement the “camera” and “microphone” permissions in the Permissions API: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API
Probably
undefined
makes more sense here.