Audio autoplay + timer starts after the sound is finished | XM Community
Skip to main content
Question

Audio autoplay + timer starts after the sound is finished

  • July 24, 2022
  • 1 reply
  • 57 views

Hello, I'm designing an experiment where each trial needs play an auto-played audio first, and after the audio is finished I want it to trigger the timer to start count down 5 seconds to auto-advance.
I wish someone could help me to write this code, because I barely know nothing about coding.
Thank you so much!

1 reply

Forum|alt.badge.img+15
  • QPN Level 4 ●●●●
  • October 27, 2022

You can definitely do this however it requires custom coding. You can use your audio player finished or html5 onended event to run your script.