oanguenot / webrtcmetrics

Aggregate stats received from the WebRTC stack
MIT License
34 stars 11 forks source link

WebRTCMetrics overrides existing pc listeners #24

Closed oanguenot closed 1 year ago

oanguenot commented 1 year ago

By using pc.on... to register event (such as pc.onconnectionstatechange), WebRTCMetrics overrides existing listeners and may prevent application to capture events on its own.

".on" listeners need to be replaced by addEventListener