daily-co / daily-js

https://docs.daily.co/reference/daily-js
BSD 2-Clause "Simplified" License
103 stars 33 forks source link

BUG: Using five or more STUN/TURN servers causes problems #228

Open slavchev opened 1 year ago

slavchev commented 1 year ago

Expected behavior

Joining video call should work on Firefox.

Describe the bug (unexpected behavior)

Sometimes Firefox browser cannot start video call.

Steps to reproduce

  1. Create frame via window.DailyIframe.createFrame
  2. Call join method

Screenshots

image

System information

* Device: Dell Latitude 5530 * OS, version: Ubuntu 20.04.6 * Browser, version: Firefox 117 and Firefox 118 # Additional context

There is an explicit check in Firefox code, see _validateIceServers(...) https://searchfox.org/mozilla-central/source/dom/media/PeerConnection.sys.mjs#791

LewisWolfgang commented 1 year ago

Thank you for the report. These warning messages when using 3 or more (and 5 or more) STUN/TURN URLs are unique to Firefox and were introduced with a much earlier webRTC implementation (7 years ago). To the best of our knowledge, recent versions of Firefox have no performance issues handling 5 urls. We switched from 4 to 5 urls more than a year ago and have seen no increase in connection issues since then. We are reaching out to our developer contacts at Mozilla to get their perspective and will update this ticket as we learn more.