No audio/TypeError: undefined is not an object (evaluating 'audio.currentTime = 0') #1315
Unanswered
jubejubess
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I'm stumped. Do you have a link to the experiment on the JATOS server that we could look at? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Sorry for another audio-related question on my part. I'm programming an experiment wherein participants hear audio clips (via audio-keyboard-response) and respond via html-slider-response. The audio/response trials are set up in a timeline variable with a conditional function that inserts a break halfway through. I have two versions of the same experiment set up where the structure is exactly the same but just with different audio played. I seem to be encountering different audio issues with each experiment.
With one version, I always get 5-10 trials that play no audio at all and then goes straight to the html-slider-response trial. This seems to always occur during the latter half, never during the first half of the experiment. The audio files that don't play are at random, i.e. not always the same audio files are affected each time I run through. There's also no error messages in the console when this happens.
While for the other version (always after the first few trials), the audio suddenly doesn't play along with this error (which doesn't allow me to continue on with the rest of the experiment):
TypeError: undefined is not an object (evaluating 'audio.currentTime = 0')
I don't seem to encounter this issue with the other version, even though all of the audio clips come from the same source, just organized in different folders for each experiment/stimuli grouping. The audio was also playing fine when I had tested it a few weeks ago, but I'm not sure why it's not playing anymore (I've tested it on both my local JATOS install & the covid JATOS server).
I've tried to minimize any loading errors already by having all the audio clips preloaded in chunks throughout the experiment. I checked the network tab and I believe the audio clips are loading properly -- this is what shows up:
Any help or insight would be appreciated, thank you!
Beta Was this translation helpful? Give feedback.
All reactions