toggleContentShare should await or return the calls to audioVideo.startContentShare in ContentShareProvider
What happened and what did you expect to happen?
When you call toggleContentShare if the user hasn't given permission you can't catch the error and display a helpful message to assist them in fixing their permissions.
https://github.com/aws/amazon-chime-sdk-component-library-react/blob/main/src/providers/ContentShareProvider/index.tsx#L131
The above code should either await or return the promises so that the caller can catch any error.
Have you reviewed our existing documentation?
- [X] Amazon Chime SDK for JavaScript GitHub issues
- [X] Amazon Chime SDK React Components Library GitHub issues
- [X] Storybook documentation
- [X] README page
- [X] How-to documentation
- [X] React SDK meeting demo
Reproduction steps
- Remove screen capture permissions for chosen browser
- Call toggleContentShare
- Either add a
.catchor wrap in atry/catch - the provided exception handling will not be called
Amazon Chime SDK React Components Library version
3.4.0
What browsers are you seeing the problem on?
all
Browser version
all
Device Information
all
Meeting and Attendee ID Information.
No response
Browser console logs
Uncaught (in promise) DOMException: Permission denied by system
Add any other context about the problem here.
No response
This would be a really helpful for us also. Any updates on this?
Thank you for submitting a feature request. We will track your request via an entry on the Amazon Chime SDK Project Board for centralized visibility of the request and its status and close this GitHub issue. Thank you for your feedback and for contributing to the future of the service.