mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-15 23:58:29 +00:00
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:
parent
c559b6ad5f
commit
11ad42bf34
@ -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
|
||||
|
||||
|
||||
4
main.js
4
main.js
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user