Open
Description
Using the vue setup composition api here:
<script setup lang="ts">
import ping from './assets/ping.wav';
import { useSound } from '@vueuse/sound';
const pingSound = useSound(ping);
async function clickTheButton() {
pingSound.play();
}
</script>
Everything works as it should but the console leaves a warning on loading the component (clickTheButton is not yet triggered):
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
Using Vue3.2.45 and Vite 4.1.0
Is there a way to avoid these warnings?
Metadata
Metadata
Assignees
Labels
No labels
Activity