amazon-chime-sdk-js icon indicating copy to clipboard operation
amazon-chime-sdk-js copied to clipboard

Cannot `setParameters` on `RTCRtpSender` during a meeting

Open kuentinozaure opened this issue 1 year ago • 0 comments

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() or realtimeUnmuteLocalAudio()
  • Try to toggle camera with startLocalVideoTile() or stopLocalVideoTile()
  • 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

kuentinozaure avatar Sep 09 '24 15:09 kuentinozaure