webex / webex-js-sdk

JavaScript SDK for Webex
https://webex.github.io/webex-js-sdk/
Other
167 stars 334 forks source link

fix: sending selectedCandidatePairChanges metric #3637

Closed marcin-bazyl closed 3 weeks ago

marcin-bazyl commented 3 weeks ago

COMPLETES #SPARK-532530

This pull request addresses

We have a suspicion that DTLS handshake failures are caused by Linus not handling correctly the switching of the selected ICE candidate pair.

by making the following changes

Sending selectedCandidatePairChanges with the add media success and failure metrics so that we can prove that it's always greater than 1 when DTLS handshake fails and equal to 1 when we connect without issues.

Unfortunately, selectedCandidatePairChanges is not supported by Firefox and Safari, so we'll get these metrics only on Chrome and Edge.

Implementation details:

Change Type

The following scenarios where tested

manually with locally linked web app + unit tests

I certified that


Make sure to have followed the contributing guidelines before submitting.