Open ashkim1 opened 2 weeks ago
Hi @ashkim1 -
I didn't notice this warning at first because I had my console set to only output errors. Now that I've set it to include warnings, I see it too.
Looking into it, the warning occurs because browsers require user interaction (such as a click or a key press) before allowing audio to play. This is a common security and usability measure to prevent unwanted audio from playing automatically.
However, we're not using any audio-related jsPsych related plugins, so I don't see why we should be seeing this. The warning points to an underlying file in the jsPsych library. I created a post on the jsPsych issues page to see if they can provide any insight: https://github.com/jspsych/jsPsych/issues/3407.
In the meantime, the warning should not be causing any problems with our work, so you can ignore it.
Update: Here's a reply from one of jsPsych's maintainers on the issue: https://github.com/jspsych/jsPsych/issues/3407#issuecomment-2386581796
I copied and pasted the codes for index.html and experiment.js from the jsPsych Intro notes, but I am getting the following warning in my console:
"The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu"
What does this mean?