Compare commits

...

2 Commits

Author SHA1 Message Date
Mid
6a284b89a9 More resolution-friendly 2024-12-22 12:04:01 +02:00
Mid
be53922861 debug fix 2024-12-22 12:03:49 +02:00
2 changed files with 23 additions and 2 deletions

View File

@ -140,7 +140,7 @@
text = text + k + ":" + (Math.floor(100 * Statistics[k].sum / Statistics[k].count) / 100) + "," text = text + k + ":" + (Math.floor(100 * Statistics[k].sum / Statistics[k].count) / 100) + ","
} }
stats.innerText = text*/ stats.innerText = text*/
stats.innerHTML = (VideoQueue.length ? (VideoQueue[VideoQueue.length - 1].t - VideoQueue[0].t) : "0") + "v" + (AudioQueue.reduce(function(acc, obj) {return acc + obj.left.length * AudHz / 1000}, 0)|0) + "a" stats.innerHTML = (VideoQueue.length ? (VideoQueue[VideoQueue.length - 1].t - VideoQueue[0].t) : "0") + "v" + (AudioQueue.reduce(function(acc, obj) {return acc + obj.left.length * 1000 / AudHz}, 0)|0) + "a"
} }
} }

View File

@ -71,6 +71,26 @@
display: block; display: block;
line-height: initial; line-height: initial;
} }
@media(max-aspect-ratio: 1) {
div.everything {
top: 0;
left: 0;
transform: translate(0, 0);
}
div.stream {
flex-direction: column;
}
div.stream > div.chat {
min-height: 20vh;
}
converse-root {
position: absolute !important;
width: 100%;
height: 100%;
display: inline-block;
}
}
</style> </style>
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/10.1.4/dist/converse.min.css"> <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/10.1.4/dist/converse.min.css">
<meta charset="UTF-8" /> <meta charset="UTF-8" />
@ -114,7 +134,8 @@
singleton: true, singleton: true,
discover_connection_methods: false, discover_connection_methods: false,
keepalive: false, keepalive: false,
auto_reconnect: true auto_reconnect: true,
hide_muc_participants: true
}) })
</script> </script>
</body> </body>