Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created September 1, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/81832f104721c0a21503 to your computer and use it in GitHub Desktop.
Save kypflug/81832f104721c0a21503 to your computer and use it in GitHub Desktop.
var iceOptions = new RTCIceGatherOptions;
iceOptions.gatherPolicy = "all";
iceOptions.iceservers = ... ;
var iceGathr = new RTCIceGatherer(iceOptions);
iceGathr.onlocalcandidate = function(evt) {
mySignaller.signalMessage({
"candidate": evt.candidate
});
};
@phistuck
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