Allow loopback tests to do TURN when served from webrtc.googlecode.com.
BUG=3037 R=fischman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10809004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5801 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -124,8 +124,8 @@ function LoopbackTest(stream, callDurationMs, forceTurn, maxVideoBitrateKbps) {
|
||||
doneCallback();
|
||||
}
|
||||
|
||||
function fail() {
|
||||
trace("Fail");
|
||||
function fail(msg) {
|
||||
trace("Fail: " + msg);
|
||||
doneCallback();
|
||||
}
|
||||
}
|
||||
@ -194,8 +194,9 @@ function LoopbackTest(stream, callDurationMs, forceTurn, maxVideoBitrateKbps) {
|
||||
function requestTurn(successCallback, failureCallback) {
|
||||
var currentDomain = document.domain;
|
||||
if (currentDomain.search('localhost') === -1 &&
|
||||
currentDomain.search('apprtc') === -1) {
|
||||
onerror("not authorized domain");
|
||||
currentDomain.search('webrtc.googlecode.com') === -1) {
|
||||
failureCallback("Domain not authorized for turn server: " +
|
||||
currentDomain);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user