@@ -490,17 +537,18 @@ function addUrlToHistory(url){
}
}
-function modURL(ele=false){
+function modURL(){
var url = document.getElementById('changeText').value;
- console.log(url);
- document.getElementById('changeText').value = url;
+ if (url.startsWith("obs.ninja")){
+ url = "https://"+url;
+ }
console.log(url);
return url;
}
function gohere(){
addUrlToHistory(document.getElementById('changeText').value);
localStorage.setItem('lastUrls', JSON.stringify(lastUrls));
- var url = modURL(true);
+ var url = modURL();
if (!(document.getElementById('changeText').value.includes("obs.ninja")) && (document.getElementById('changeText').value.includes("http")) && (document.getElementById('changeText').value.includes("&sink"))){
alert("Notice: The &sink command is domain specific.\nVisit https://YOURDOMAIN.com/electron instead.");
}
diff --git a/iframe.html b/iframe.html
index 3ac4520..0881ae3 100644
--- a/iframe.html
+++ b/iframe.html
@@ -192,6 +192,11 @@ function loadIframe(){ // this is pretty important if you want to avoid camera
button.onclick = function(){iframe.contentWindow.postMessage({"sendChat":"Hello!"}, '*');};
iframeContainer.appendChild(button);
+ var button = document.createElement("button");
+ button.innerHTML = "Send Keyframe";
+ button.onclick = function(){iframe.contentWindow.postMessage({"keyframe":true}, '*');};
+ iframeContainer.appendChild(button);
+
var button = document.createElement("button");
button.innerHTML = "Insert Style Sheet";
var stylesheet = "#main { zoom: 0.5;} video {float: left; margin: 0; padding: 0; } #info {display:none;}";
diff --git a/index.html b/index.html
index f0746d3..583cf6b 100644
--- a/index.html
+++ b/index.html
@@ -55,7 +55,7 @@
}
-
+
@@ -66,8 +66,8 @@
-
-
+
+
@@ -142,22 +142,25 @@
-
+
+
+
+
-
+
-
+
-
+
-
+
@@ -965,7 +968,13 @@
- Mute microphone by default
+ Muted; guest can unmute
+
+
+ Muted; director can unmute Guest joins with no camera
-
- Unmute by director only
-