[IN TESTING] attempt to fix #106

This commit is contained in:
ashley 2024-07-27 11:23:38 +00:00
parent edf8991914
commit 769a6dea2d

View file

@ -982,8 +982,8 @@ function cstsRemaining(totalTimeInSeconds, elapsedTimeInSeconds) {
aud.addEventListener("canplaythrough", shouldPlay); aud.addEventListener("canplaythrough", shouldPlay);
vid.addEventListener("canplaythrough", shouldPlay); vid.addEventListener("canplaythrough", shouldPlay);
}) })
</script>
<script>
const audioContext = new (window.AudioContext || window.webkitAudioContext)(); const audioContext = new (window.AudioContext || window.webkitAudioContext)();
const source = audioContext.createMediaElementSource(aud); const source = audioContext.createMediaElementSource(aud);
const analyser = audioContext.createAnalyser(); const analyser = audioContext.createAnalyser();
@ -1022,9 +1022,6 @@ function checkAudio() {
// Check audio every second // Check audio every second
setInterval(checkAudio, 1000); setInterval(checkAudio, 1000);
</script>
<script>
</script> </script>
<% if(shortsui) { %> <% if(shortsui) { %>
<script> <script>