Add files via upload

fixed the highlight video button
This commit is contained in:
Steve Seguin 2022-01-24 09:11:12 -05:00 committed by GitHub
parent 6752212969
commit df1f1c5e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -1072,11 +1072,11 @@
</label>
<span data-translate="guest-joins-with-no-camera">Guest joins with no camera</span>
<Br />
<label class="switch" title="Make the invite URL encoded, so parameters are harder to tinker with by guests">
<label class="switch" title="Make the invite URL encoded, so parameters are harder to tinker with by guests. This also debrands the interface and gives it a new domain name.">
<input type="checkbox" data-param="" id="obfuscate_director_1" onchange="updateLink(1,this);">
<span class="slider"></span>
</label>
<span data-translate="obfuscate-link">Obfuscate link and parameters</span>
<span data-translate="obfuscate-link">Obfuscate with Invite.cam</span>
</div>
</div>

18
lib.js
View File

@ -4035,10 +4035,10 @@ function updateMixerRun(e=false){ // this is the main auto-mixing code. It's a
container.appendChild(button);
if (vid.id == "videosource"){
button.onclick = function(event){
if (soloVideo === true){
soloVideo = false;
if (session.infocus === true){
session.infocus = false;
} else {
soloVideo = true;
session.infocus = true;
}
setTimeout(()=>updateMixer(),10);
};
@ -4047,12 +4047,12 @@ function updateMixerRun(e=false){ // this is the main auto-mixing code. It's a
button.dataset.UUID = vid.dataset.UUID;
button.onclick = function(event){
var target = event.currentTarget;
if (soloVideo === target.dataset.UUID){
if (session.infocus === target.dataset.UUID){
//target.childNodes[0].className = 'las la-arrows-alt';
soloVideo = false;
session.infocus = false;
} else {
//target.childNodes[0].className = 'las la-compress';
soloVideo = target.dataset.UUID;
session.infocus = target.dataset.UUID;
//log("session:"+target.dataset.UUID);
}
setTimeout(()=>updateMixer(),10);
@ -4116,10 +4116,10 @@ function updateMixerRun(e=false){ // this is the main auto-mixing code. It's a
button.onclick = function(event){
event.stopPropagation();
event.preventDefault();
if (!soloVideo){return;}
if (!session.infocus){return;}
if (soloVideo === true){
soloVideo = false;
if (session.infocus === true){
session.infocus = false;
setTimeout(()=>updateMixer(),10);
}

View File

@ -1418,7 +1418,7 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
}
}
}
}
}
}
try {
log("OBS VERSION:" + window.obsstudio.pluginVersion);