mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 22:38:14 +01:00
[IN TESTING] attempt to fix #106
This commit is contained in:
parent
edf8991914
commit
769a6dea2d
1 changed files with 3 additions and 6 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue