-
Notifications
You must be signed in to change notification settings - Fork 160
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
Incorrect error being thrown when starting video input device from MeetingManager #888
Comments
Hi team, Could I check if there are any updates on this issue? Thank you. |
Hi @Nanosync thanks for opening this issue and providing lots of details here. These are very helpful. I think you're right, we should directly throw this error instead of wrapping it with another general Most likely it's not breaking and we could have a PR to update this. Thank you. |
Hi @Nanosync I checked the code. The So the error here in line 371 will not be thrown when you call amazon-chime-sdk-component-library-react/src/providers/MeetingProvider/MeetingManager.ts Lines 350 to 376 in 952f829
If you block device permission in browser and then call The error message you got is actually from
amazon-chime-sdk-component-library-react/src/providers/MeetingProvider/MeetingManager.ts Lines 503 to 515 in 952f829
JS SDK use |
You're right, we should:
Thanks a lot for your investigation, these are really helpful. |
Change is merged into main line and will be released in next version. Closing this for now. Let me know if you have any other thoughts. Thank you! |
What happened and what did you expect to happen?
I am using
meetingManager.startVideoInputDevice()
andmeetingManager.stopVideoInputDevice
to start/stop the video input device, and if an error is thrown, the error name is used to display an appropriate error message.Current Result:
These 2 functions are wrapping the original Error coming from
handleGetUserMedia
(in device controller from the JS sdk) and throwing a generic Error.Expected Result:
The original Error should be thrown for these 2 functions, and possibly all the other functions (
startAudioInputDevice
,stopAudioInputDevice
,startAudioOutputDevice
,stopAudioOutputDevice
).I also note that in
setupDeviceLabelTrigger
, the error is being wrapped (throw new Error(error)
), it shouldthrow error
directly.Have you reviewed our existing documentation?
Reproduction steps
await meetingManager.startVideoInputDevice()
.PermissionDeniedError
/NotReadableError
is thrown, the Error name is "Error" with reason "MeetingManager failed to select video input device"Amazon Chime SDK React Components Library version
3.5.0
What browsers are you seeing the problem on?
Chrome
Browser version
Version 112.0.5615.49 (Official Build) (arm64)
Device Information
macOS Monterey 12.6.1
Meeting and Attendee ID Information.
No response
Browser console logs
Add any other context about the problem here.
No response
The text was updated successfully, but these errors were encountered: