Reply To: Audio won't play

PennController for IBEX Forums Support Audio won't play Reply To: Audio won't play

#5728
Jeremy
Keymaster

Hi,

Most browsers will block audio/video autoplay on page load, and will require an interaction with the page before the script can trigger playback. If this is the very first trial of your experiment, just add newButton("Start").print().wait(), immediately before newAudio and it should work (also, you probably want to add something after play() because as it is coded now your trial ends as soon as the audio starts playing).

Jeremy