aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
716 stars 472 forks source link

Cannot `setParameters` on `RTCRtpSender` during a meeting #2947

Closed kuentinozaure closed 1 week ago

kuentinozaure commented 2 months ago

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

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

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

ltrung commented 3 weeks ago

This seems like an issue with video transceiver and is not related to send data message. Could you send us the full log or a code snippet of how you implement the change?

hensmi-amazon commented 2 weeks ago

Also, does this reproduce on the latest JS SDK version? 3.18.2 is quite old at this point.

ltrung commented 1 week ago

Closing due to inactivity. Please reopen if you still need help.