This commit is contained in:
steveseguin 2023-08-06 22:37:23 -04:00
parent 518fd4f8f9
commit 96d8a1bfa4
3 changed files with 22 additions and 15 deletions

View File

@ -60,6 +60,12 @@
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/adapter.js"></script>
<style id="lightbox-animations" type="text/css"></style>
<!-- Until Chrome v115 ends ; pip2 -->
<meta http-equiv="origin-trial" content="AoalTVyEOoiQninAV09SzviYaAtRKuTfDIsMUNQLIg1/+ZWOpXEFOL+GQGqkQzkkszPrK26oGzB1hIF3beHJjAMAAABeeyJvcmlnaW4iOiJodHRwczovL3Zkby5uaW5qYTo0NDMiLCJmZWF0dXJlIjoiRG9jdW1lbnRQaWN0dXJlSW5QaWN0dXJlQVBJIiwiZXhwaXJ5IjoxNjk0MTMxMTk5fQ==">
<!-- Until Chrome v117 ends ; blur -->
<meta http-equiv="origin-trial" content="Aqwjtr1IS9AdkcWCFAOHtMMmsKDy8Ti58hQBbHkR/HnloiMhkW17cYgnkiLgOH9zuTDC/o4GquQ0MHe9tqT51wcAAABdeyJvcmlnaW4iOiJodHRwczovL3Zkby5uaW5qYTo0NDMiLCJmZWF0dXJlIjoiTWVkaWFDYXB0dXJlQmFja2dyb3VuZEJsdXIiLCJleHBpcnkiOjE2OTg5Njk1OTl9">
<!-- <link rel="manifest" href="manifest.json" /> -->
<!-- ios support
<link rel="apple-touch-icon" href="images/icons/icon-72x72.png" />
@ -84,7 +90,7 @@
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/CodecsHandler.js?ver=48"></script>
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/aes.js"></script>
<script type="text/javascript" crossorigin="anonymous" src="./webrtc.js?ver=681"></script>
<script type="text/javascript" crossorigin="anonymous" src="./webrtc.js?ver=682"></script>
<input id="zoomSlider" type="range" style="display: none;" />
<span id="electronDragZone" style="pointer-events: none; z-index:-10; position:absolute;top:0;left:0;width:100%;height:2%;-webkit-app-region: drag;min-height:20px;"></span>
<div id="header">
@ -2641,7 +2647,7 @@
// session.hidehome = true; // If used, 'hide home' will make the landing page inaccessible, along with hiding a few go-home elements.
// session.record = false; // uncomment to block users from being able to record via vdo.ninja's built in recording function
</script>
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=885"></script>
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=886"></script>
<!--
// If you wish to change branding, blank offers a good clean start.
<script type="text/javascript" id="main-js" src="./main.js" data-translation="blank"></script>

25
lib.js
View File

@ -4636,19 +4636,20 @@ function updateMixerRun(e=false){ // this is the main auto-mixing code. It's a
}
}
if (document.fullscreenElement) {
log("FULL SCREEN: "+document.fullscreenElement.id);
for (var i=0;i<mediaPool.length;i++){ // if its your local camera, it shouldn't be a problem.
if (mediaPool[i].id == document.fullscreenElement.id){ // make sure the element is suppose to be seen.
//return; // This is FULL SCREEN, (we will keep it if it is full screen
} else if (session.fullscreenButton && document.fullscreenElement.querySelector("[id='"+mediaPool[i].id+"']")){ // make sure the element is suppose to be seen.
//return; // This is FULL SCREEN, (we will keep it if it is full screen
} else if (mediaPool[i].dataset && mediaPool[i].dataset.UUID && mediaPool[i].tagName && mediaPool[i].tagName == "VIDEO"){
session.requestRateLimit(session.hiddenSceneViewBitrate, mediaPool[i].dataset.UUID, null); // null implies don't change the current audio setting
mediaPool_invisible.push(mediaPool[i]); // move visible elements to the invisible list, since something is full screen
mediaPool.splice(i,1);
if (document.fullscreenElement) {
try {
if (document.fullscreenElement.tagName === "VIDEO"){ // if its HTML, than we assume its the full canvas
for (var i=0;i<mediaPool.length;i++){ // if its your local camera, it shouldn't be a problem, so we can focus on remote cameras only
if (mediaPool[i].id !== document.fullscreenElement.id){ // if its selected camera, we want to exclude it
if (mediaPool[i].dataset && mediaPool[i].dataset.UUID && mediaPool[i].tagName && mediaPool[i].tagName == "VIDEO"){
session.requestRateLimit(session.hiddenSceneViewBitrate, mediaPool[i].dataset.UUID, null); // null implies don't change the current audio setting
mediaPool_invisible.push(mediaPool[i]); // move visible elements to the invisible list, since something is full screen
mediaPool.splice(i,1);
}
}
}
}
}
} catch(e){errorlog(e);}
}

File diff suppressed because one or more lines are too long