getting error Failed to execute 'getStats' on 'RTCPeerConnection': The callback-based getStats()

688 Views Asked by At

enter image description here

hi guys i am using AgoraRTCSDK with version 3.6.11 and google chrome Version 118.0 and getting error which mention in above image. kindly help me to remove this.

i have read out this google developer blog which mention getStats is remove.

https://developer.chrome.com/blog/getstats-migration/

1

There are 1 best solutions below

0
Victor Axelsson On

As you describe in your post the function getStats used with a callback have been deprecated in favour of using Promises instead.

The agora-rtc-sdk have been deprecated so any updated on this package is not to be expected.

Unless you want to fix the deprecated package you might want to consider using the newer agora-rtc-sdk-ng instead.