aws / amazon-chime-sdk-js

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

Request for Support for Promise-based getStats Method in 'amazon-chime-sdk-js' #2792

Closed narisettiashok closed 8 months ago

narisettiashok commented 8 months ago

What happened and what did you expect to happen?

I am currently using 'amazon-chime-sdk-js' version 1.20.2, and I've encountered a compatibility issue with the WebRTC statistics retrieval process. The library is still using the deprecated callback-based 'getStats' method, which is no longer supported in latest chrome browser. This has led to an error message: "Uncaught (in promise) DOMException: Failed to execute 'getStats' on 'RTCPeerConnection': The callback-based getStats() method is no longer supported. I have tested in Brave browser but i did not reporduce this error.

Have you reviewed our existing documentation?

Reproduction steps

Start meeting, check in console log of browser.

Amazon Chime SDK for JavaScript version

1.20.2

What browsers are you seeing the problem on?

Google Chrome

Browser version

Version 118.0.5993.117 (Official Build) (64-bit)

Meeting and Attendee ID Information.

For all meetings facing this issue.

Browser console logs

Uncaught (in promise) DOMException: Failed to execute 'getStats' on 'RTCPeerConnection': The callback-based getStats() method is no longer supported. at push../node_modules/amazon-chime-sdk-js/build/statscollector/DefaultStatsCollector.js.DefaultStatsCollector.getStatsWrapper

pracheth commented 8 months ago

Promise based getStats support was added in 3.0.0 (refer CHANGELOG)

Upgrading to at least 3.0.0 (or the latest version of 3.18.2 if possible) should help you out. Note that 1.20.2 is a deprecated version which is almost 3 years old now.

narisettiashok commented 8 months ago

Promise based getStats support was added in 3.0.0 (refer CHANGELOG)

Upgrading to at least 3.0.0 (or the latest version of 3.18.2 if possible) should help you out. Note that 1.20.2 is a deprecated version which is almost 3 years old now.

Ok. Thank you.