| Reference | Downloads | Github

Timing of experiment in background tab

URL of experiment: Sign in · GitLab

Description of the problem: We’re developing an experiment where people are allowed to leave the pavlovia task for a while and do something in another browser tab. After a few minutes, we’d like the task to play an alarm sound to let the person know it’s time to come back to the task. The way it seems to work now is that the waiting period finishes, but the alarm sound doesn’t play until the participant refocuses on the pavlovia tab. Is there any way to get the task to play the sound even when it’s in the background?

@jon @apitiot @wakecarter - sorry to bother you, but you’ve been very helpful on related questions in the past!

Could you have a sound file that starts playing in the foreground but is actually several minutes of silence or ticking followed by an alarm?