invalid variable names corrected

index.html
session.turn-mode changed to session.turnmode

main.js
session.turn-mode changed to session.turnmode
This commit is contained in:
Jumper78 2021-05-11 18:46:38 +02:00
parent c559b6ad5f
commit 11ad42bf34
2 changed files with 4 additions and 4 deletions

View File

@ -1577,8 +1577,8 @@
// turn.urls = ["turn:turn2.obs.ninja:443"]; // US WEST
// session.configuration.iceServers.push(turn);
// session.turn-mode == "twilio" // uncomment to use credentials for the turn-server provided by Twilio
// session.turn-mode = "php-credentials" // uncomment to distribute the turn-username, -password and -server via running turn-credentials.php, e.g., if you have a turn-server with a static-auth-secret
// session.turnmode == "twilio" // uncomment to use credentials for the turn-server provided by Twilio
// session.turnmode = "php-credentials" // uncomment to distribute the turn-username, -password and -server via running turn-credentials.php, e.g., if you have a turn-server with a static-auth-secret
// session.configuration.iceTransportPolicy = "relay"; // uncomment to enable "&privacy" and force the TURN server

View File

@ -2474,7 +2474,7 @@ if (urlParams.has('speedtest')){ // forces essentially UDP mode, unless TCP is s
if (urlParams.has('turn')) {
var turnstring = urlParams.get('turn');
if (turnstring == "twilio" || session.turn-mode == "twilio") { // a sample function on loading remote credentials for TURN servers.
if (turnstring == "twilio" || session.turnmode == "twilio") { // a sample function on loading remote credentials for TURN servers.
try {
session.ws = false; // prevents connection
@ -2515,7 +2515,7 @@ if (urlParams.has('turn')) {
errorlog("Twilio Failed");
}
} else if (turnstring == "php-credentials" || session.turn-mode == "php-credentials") { // a function loading the turn server credentials from the provided php-script "turn-credentials.php"
} else if (turnstring == "php-credentials" || session.turnmode == "php-credentials") { // a function loading the turn server credentials from the provided php-script "turn-credentials.php"
try {
session.ws = false; // prevents connection