mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 13:48:38 +00:00
toggle between video/audio
This commit is contained in:
parent
54ab0f19dc
commit
e544bcbbfa
22
lib.js
22
lib.js
@ -15846,12 +15846,21 @@ function requestInfocus(ele, evt=null, value=null) {
|
|||||||
|
|
||||||
|
|
||||||
function requestAudioSettings(ele) {
|
function requestAudioSettings(ele) {
|
||||||
|
|
||||||
var UUID = ele.dataset.UUID;
|
var UUID = ele.dataset.UUID;
|
||||||
|
|
||||||
|
try {
|
||||||
|
query("#container_"+UUID+" [data-action-type='advanced-camera-settings']").value = 0;
|
||||||
|
query("#container_"+UUID+" [data-action-type='advanced-camera-settings']").classList.remove("pressed");
|
||||||
|
query("#container_"+UUID+" .advancedVideoSettings").classList.add("hidden");
|
||||||
|
query("#container_"+UUID+" .advancedVideoSettings").innerHTML = "";
|
||||||
|
} catch(e){}
|
||||||
|
|
||||||
if (ele.value == 1) {
|
if (ele.value == 1) {
|
||||||
ele.value = 0;
|
ele.value = 0;
|
||||||
ele.classList.remove("pressed");
|
ele.classList.remove("pressed");
|
||||||
query("#container_"+UUID+" .advancedAudioSettings").innerHTML = "";
|
|
||||||
query("#container_"+UUID+" .advancedAudioSettings").classList.add("hidden");
|
query("#container_"+UUID+" .advancedAudioSettings").classList.add("hidden");
|
||||||
|
query("#container_"+UUID+" .advancedAudioSettings").innerHTML = "";
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ele.value = 1;
|
ele.value = 1;
|
||||||
@ -15866,12 +15875,19 @@ function requestAudioSettings(ele) {
|
|||||||
|
|
||||||
function requestVideoSettings(ele) {
|
function requestVideoSettings(ele) {
|
||||||
var UUID = ele.dataset.UUID;
|
var UUID = ele.dataset.UUID;
|
||||||
|
|
||||||
|
try {
|
||||||
|
query("#container_"+UUID+" [data-action-type='advanced-audio-settings']").value = 0;
|
||||||
|
query("#container_"+UUID+" [data-action-type='advanced-audio-settings']").classList.remove("pressed");
|
||||||
|
query("#container_"+UUID+" .advancedAudioSettings").classList.add("hidden");
|
||||||
|
query("#container_"+UUID+" .advancedAudioSettings").innerHTML = "";
|
||||||
|
} catch(e){}
|
||||||
|
|
||||||
if (ele.value == 1) {
|
if (ele.value == 1) {
|
||||||
ele.value = 0;
|
ele.value = 0;
|
||||||
ele.classList.remove("pressed");
|
ele.classList.remove("pressed");
|
||||||
|
|
||||||
query("#container_"+UUID+" .advancedVideoSettings").innerHTML = "";
|
|
||||||
query("#container_"+UUID+" .advancedVideoSettings").classList.add("hidden");
|
query("#container_"+UUID+" .advancedVideoSettings").classList.add("hidden");
|
||||||
|
query("#container_"+UUID+" .advancedVideoSettings").innerHTML = "";
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ele.value = 1;
|
ele.value = 1;
|
||||||
|
|||||||
@ -2224,7 +2224,7 @@
|
|||||||
additional2+="&showdirector";
|
additional2+="&showdirector";
|
||||||
}
|
}
|
||||||
|
|
||||||
var iframesrc = "./index.html?ltb=350&sstype=3&transparent&hideheader&hidetranslate&cleandirector&chatbutton=0&director="+roomname+additional+additional2+"&b64css="+injectCSS;
|
var iframesrc = "./index.html?ltb=350&transparent&hideheader&hidetranslate&cleandirector&chatbutton=0&director="+roomname+additional+additional2+"&b64css="+injectCSS;
|
||||||
|
|
||||||
var params = window.location.search || "";
|
var params = window.location.search || "";
|
||||||
|
|
||||||
@ -2285,7 +2285,7 @@
|
|||||||
this.state = !this.state;
|
this.state = !this.state;
|
||||||
this.dataset.state = this.state;
|
this.dataset.state = this.state;
|
||||||
|
|
||||||
iframe.contentWindow.postMessage({"previewMode":this.state, "layout":currentLayout, "bitrate":35, "target": "*"}, '*');
|
iframe.contentWindow.postMessage({"previewMode":this.state, "layout":currentLayout, "target": "*"}, '*');
|
||||||
if (this.state){
|
if (this.state){
|
||||||
this.innerHTML = "Director View ↻";
|
this.innerHTML = "Director View ↻";
|
||||||
iframe.classList.add("aspectRatio");
|
iframe.classList.add("aspectRatio");
|
||||||
@ -2346,7 +2346,7 @@
|
|||||||
|
|
||||||
var a = document.createElement("a");
|
var a = document.createElement("a");
|
||||||
a.innerHTML = "Invite Guest Link 📎";
|
a.innerHTML = "Invite Guest Link 📎";
|
||||||
a.href = "./?room="+roomname+"&sstype=3&broadcast"+additional;
|
a.href = "./?room="+roomname+"&broadcast"+additional;
|
||||||
a.target = "_blank";
|
a.target = "_blank";
|
||||||
a.onclick = function(evt){copyFunction(this, evt);};
|
a.onclick = function(evt){copyFunction(this, evt);};
|
||||||
document.getElementById("sources").appendChild(a);
|
document.getElementById("sources").appendChild(a);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user