amazon-chime-sdk-js
amazon-chime-sdk-js copied to clipboard
Cannot `setParameters` on `RTCRtpSender` during a meeting
What happened and what did you expect to happen?
Context
I've a web application running on different browser (safari / chrome / opera) The users can share content and do some realtime work on a pdf. I ve two type of user:
- Host
- Participant.
Host
The host can manage the meeting, un/mute mic, toggle on /off the participant camera.
Participant
Can interact with the pdf element and un/mute his mic and toggle his camera.
Error
=> The error appears randomly (in 3 months it only appeared about ten times)
For some reason, when my host try to change the status of mic / camera and sending with the realtimeSendDataMessage, the sdk return me an error in my browser console.
Uncaught (in promise): InvalidStateError: Failed to execute 'setParameters' on 'RTCRtpSender': Failed to set parameters since getParameters() has never been called on this sender
After this error happens, the mic / camera status cannot be changed
Have you reviewed our existing documentation?
Reproduction steps
- create a meeting
- Try to toggle mic with
realtimeMuteLocalAudio()orrealtimeUnmuteLocalAudio() - Try to toggle camera with
startLocalVideoTile()orstopLocalVideoTile() - Send the value of the mic / camera with the
realtimeSendDataMessage-> The error should appears
Amazon Chime SDK for JavaScript version
3.18.2
What browsers are you seeing the problem on?
Chrome
Browser version
128.0.0
Meeting and Attendee ID Information.
No response
Browser console logs
Uncaught (in promise): InvalidStateError: Failed to execute 'setParameters' on 'RTCRtpSender': Failed to set parameters since getParameters() has never been called on this sender