While trying out WebRTC, I found out that it is creating issues in some Android devices having Android 11 (mostly Samsung, Vivo) in Chrome. However, it is working fine in Firefox on the same device. I tested on Samsung Galaxy A03s (SM-A037F).
I tried this - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ In Chrome, candidates are not gathered but in Firefox, candidates are gathering.
I found a similar bug in the Chromium bug tracker - https://bugs.chromium.org/p/chromium/issues/detail?id=1115498 Still issue doesn't seem to be fixed.
How can we make it work in the Chrome browser? Please help.
Same problem. If you try to set iceCandidatePoolSize = 10 in the configuration for RTCPeerConnection, then onicecandidate fires once with an empty candidate, iceConnectionState changes to the connected state.
Then I watch transceivers pc.getTransceivers()[0].sender.transport.iceTransport
gatheringState: "complete" state: "connected"
pc.getTransceivers()[0].sender.transport.iceTransport.getSelectedCandidatePair() Success! There is a selected pair!
But pc.connectionState still has a connecting state and hangs in it endlessly...
Tried on wifi and gsm connections... I don't understand anything!
Checked on other devices in the same network (wifi):
Android 11 - Samsung Galaxy M12 - Success
Android 11 - Samsung Galaxy TAB A (2019) - Success
Android 11 - Samsung Galaxy A22 (my) - FAIL
Workarround for me:
Bug chromium:
https://bugs.chromium.org/p/chromium/issues/detail?id=1240237