Skip to content

Commit

Permalink
Merge pull request #227 from mcaoun/firefox-turn
Browse files Browse the repository at this point in the history
Add TURN support for Firefox
  • Loading branch information
lodoyun committed Jan 21, 2015
2 parents 71402d3 + 7c73a9a commit 269b641
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Erizo.FirefoxStack = function (spec) {
that.pc_config.iceServers.push({"url": spec.stunServerUrl});
}

if ((spec.turnServer || {}).url) {
that.pc_config.iceServers.push({"username": spec.turnServer.username, "credential": spec.turnServer.password, "url": spec.turnServer.url});
}

if (spec.audio === undefined) {
spec.audio = true;
}
Expand All @@ -35,7 +39,7 @@ Erizo.FirefoxStack = function (spec) {

that.roapSessionId = 103;

that.peerConnection = new WebkitRTCPeerConnection();
that.peerConnection = new WebkitRTCPeerConnection(that.pc_config, that.con);

that.peerConnection.onicecandidate = function (event) {
L.Logger.debug("PeerConnection: ", spec.session_id);
Expand Down

0 comments on commit 269b641

Please sign in to comment.