Audio files stop playing after a few trials in online study

Hi everyone :slightly_smiling_face:

I am conducting an online experiment on Pavlovia involving 18 trials where an audio file (currently .wav, but also tried .mp3) and a video file (.mp4, with muted audio) play simultaneously. Locally (PsychoPy 2024.1.3), it worked perfectly. I then piloted the online study on Pavlovia using all laptops (and browsers) at my disposal without complications. However, when I started data collection, around a third of all participants reported that the audio stopped working mid-way through the trials while the videos kept playing without problems. :persevere: This never occurred right at the beginning, but at some point during the experiment (the earliest occurrence was in the 3rd trial, the latest in the 17th trial). So far, I did not find any systematic patterns: it happens in different browsers and for different operating systems. It also does not seem to be linked to a specific audio or video file nor to a specific trial or point in the experiment.

What I have already tried without success:

  • Changing the audio file type (wav, mp3) and sample rate
  • Assigning the video/audio for each trial via a csv-file vs. in code
  • Changing the timing of audio and video playback
  • Starting the audio in a routine before the video (and keeping it playing throughout the video routine)

I am pretty desperate at this point, especially since I cannot reproduce the error on my own laptop and am dependent on feedback by participants… And unfortunately, I cannot merge the video and audio into one file in advance because they are combined differently for each participant.
Therefore, I would be immensely grateful for any suggestions of what the problem might be and what I can do to fix it. Thank you so much in advance! :slightly_smiling_face: