fix(audio): broken connection stats on Firefox >= 125
WebRTC-based stats generation in the connection status modal is broken on Firefox >= 125. A broken type check coupled with a new partially implemented RTCIceTransport dictionary causes and undefined function call when fetching the selected candidate pair. Since that error is unhandled, collection breaks. Correctly check for the getSelectedCandidatePair method availability in RTCIceTransport so that it skips to pair inference from getStats if necessary.
This commit is contained in:
parent
289e591edc
commit
e4a266ae75
@ -1054,10 +1054,9 @@ class AudioManager {
|
||||
receivers[0] &&
|
||||
receivers[0].transport &&
|
||||
receivers[0].transport.iceTransport &&
|
||||
receivers[0].transport.iceTransport
|
||||
typeof receivers[0].transport.iceTransport.getSelectedCandidatePair === 'function'
|
||||
) {
|
||||
selectedPair =
|
||||
receivers[0].transport.iceTransport.getSelectedCandidatePair();
|
||||
selectedPair = receivers[0].transport.iceTransport.getSelectedCandidatePair();
|
||||
}
|
||||
|
||||
return selectedPair;
|
||||
|
Loading…
Reference in New Issue
Block a user