mdn / samples-server

MDN samples server; used for samples that can't be hosted in-place on MDN, plus back-end server-side code for samples that need it.
https://developer.mozilla.org/
Creative Commons Zero v1.0 Universal
956 stars 927 forks source link

webrtc: addTransceiver: demo doesn't work when trying to bypass trickle ICE #86

Closed space88man closed 5 years ago

space88man commented 5 years ago

Previously with addTrack it was possible to bypass trickle ICE.

  1. Disable sending new-ice-candidate or immediately sending video-offer/video-answer
  2. Wait until ICE gathering is complete event.candidate === null; then send video-offer/video-answer; in this case the SDP is fully populated with ICE candidates.

With addTransaction, this no longer works.

space88man commented 5 years ago

My mistake - when trying to stall the SDP(to gather all the ICE candidiates), there is a race condition with the callee-generated video-offer/video-answer round-trip. Still need to look at this closer.