This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #685 from kisabaka/master
Show a persistent warning about TURN through the call
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ var Call = function(params) { | |
this.onremotesdpset = null; | ||
this.onremotestreamadded = null; | ||
this.onsignalingstatechange = null; | ||
this.onstatusmessage = null; | ||
this.onturnstatusmessage = null; | ||
|
||
this.getMediaPromise_ = null; | ||
this.getIceServersPromise_ = null; | ||
|
@@ -344,11 +344,11 @@ Call.prototype.maybeGetIceServers_ = function() { | |
this.params_.peerConnectionConfig.iceServers = | ||
servers.concat(iceServers); | ||
}.bind(this)).catch(function(error) { | ||
if (this.onstatusmessage) { | ||
if (this.onturnstatusmessage) { | ||
// Error retrieving ICE servers. | ||
var subject = | ||
encodeURIComponent('AppRTC demo ICE servers not working'); | ||
this.onstatusmessage( | ||
this.onturnstatusmessage( | ||
'No TURN server; unlikely that media will traverse networks. ' + | ||
'If this persists please ' + | ||
'<a href="mailto:[email protected]?' + | ||
|