Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2015 22:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
var iceOptions = new RTCIceGatherOptions;
iceOptions.gatherPolicy = "all";
iceOptions.iceservers = ... ;
var iceGathr = new RTCIceGatherer(iceOptions);
iceGathr.onlocalcandidate = function(evt) {
"candidate": evt.candidate
Copy link

Even though it works either way, please, append parentheses -
From -
var iceOptions = new RTCIceGatherOptions;
To -
var iceOptions = new RTCIceGatherOptions();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment