diff --git a/comms.html b/comms.html
index beebb94..23acd10 100644
--- a/comms.html
+++ b/comms.html
@@ -1093,6 +1093,11 @@
mobile = true;
}
+ var videoMode = false;
+ if (urlParams.has('video')){
+ videoMode = true;
+ }
+
if (screen.height && screen.width && (screen.height*screen.width<400000)){
mobile = true;
}
@@ -1805,10 +1810,15 @@
var chatmsg = "Welcome to the Comms app. Select a group to participate in.";
chatmsg = encodeURIComponent(chatmsg);
+ var vtype = "&vd=0";
+ if (videoMode){
+ vtype = "&ad=0";
+ }
+
if (window.location.hostname == "comms.cam"){
- var iframesrc = "https://vdo.ninja/?"+urlEdited+"&controlbarspace&volumecontrol&sharperscreen&groupmode&novice<b=350&minipreview&transparent&hideheader&margin&rounded&hidetranslate&cleandirector&vd=0&webcam&nvb&sstype=3&ssb&showlabel=toprounded&labelsize=85&style=2&room="+roomname+additional+additional2+"&b64css="+injectCSS+streamID+label+"&chatmsg="+chatmsg;
+ var iframesrc = "https://vdo.ninja/?"+urlEdited+vtype+"&controlbarspace&volumecontrol&sharperscreen&groupmode&novice<b=350&minipreview&transparent&hideheader&margin&rounded&hidetranslate&cleandirector&webcam&nvb&sstype=3&ssb&showlabel=toprounded&labelsize=85&style=2&room="+roomname+additional+additional2+"&b64css="+injectCSS+streamID+label+"&chatmsg="+chatmsg;
} else {
- var iframesrc = "./index.html?"+urlEdited+"&controlbarspace&volumecontrol&sharperscreen&groupmode&novice<b=350&minipreview&transparent&hideheader&margin&rounded&hidetranslate&cleandirector&vd=0&webcam&nvb&sstype=3&ssb&showlabel=toprounded&labelsize=85&style=2&room="+roomname+additional+additional2+"&b64css="+injectCSS+streamID+label+"&chatmsg="+chatmsg;
+ var iframesrc = "./index.html?"+urlEdited+vtype+"&controlbarspace&volumecontrol&sharperscreen&groupmode&novice<b=350&minipreview&transparent&hideheader&margin&rounded&hidetranslate&cleandirector&webcam&nvb&sstype=3&ssb&showlabel=toprounded&labelsize=85&style=2&room="+roomname+additional+additional2+"&b64css="+injectCSS+streamID+label+"&chatmsg="+chatmsg;
}
diff --git a/examples/changepass.html b/examples/changepass.html
index ccc6946..a499a18 100644
--- a/examples/changepass.html
+++ b/examples/changepass.html
@@ -13,10 +13,10 @@ var generateHash = function (str, length=false){
);
};
function toHexString(byteArray){
- return Array.prototype.map.call(byteArray, function(byte){
- return ('0' + (byte & 0xFF).toString(16)).slice(-2);
- }).join('');
- }
+ return Array.prototype.map.call(byteArray, function(byte){
+ return ('0' + (byte & 0xFF).toString(16)).slice(-2);
+ }).join('');
+}
var password = prompt("Please enter the password");
password = password.trim();
password = encodeURIComponent(password);
@@ -29,7 +29,9 @@ if (location.hostname == "steveseguin.github.io"){ // allows github to be a back
salt = location.hostname.split(".").slice(-2).join("."); // official sub-domains will retain their passwords
}
-generateHash(password + salt, 4).then(function(hash) { // million to one error.
+// Million to one error with a hash length of 4, and still decent security if using a long randomized password.
+// For more security, you can use a hash length of just 2 rather than 4; VDO.Ninja v27.10 and newer supports 1,2,3,4,5, or 6 hash lengths.
+generateHash(password + salt, 4).then(function(hash) {
alert("hash value: "+hash)
});