The .play() and .stop() codes were necessary since the first trial. I previously added the .reset() part but didn’t seem to change much, probably one or two more conditions were displayed.
I also looked at Pavlovia not playing movieStim and Pavlovia experiment freezes during video playback
Stimuli in the current version are video encoded with MPEG-4. A previous try had h.264 encoded stimuli with the same results.
I made some adjustment during the day and it runs better in chrome, but it still skips a lot of stimuli, either video, audio, or both (around half).