URL of experiment: https://pavlovia.org/abbeyjoy/avspeechtask
Description of the problem:
I’m trying to play combinations of sound + video, and I’m running into an issue where the video files won’t play the second time they’re used. I’ve seen similar issues on the discussion board where people fixed this by using the .reset() and/or .stop() functions of the MovieStim class, and that sort of fixed my problem: it works if I use Firefox as my browser, but it still doesn’t work in Chrome: the movie file is just frozen on a single frame the second time around. (This can be seen in the experiment by selecting ‘y’ to do the practice tasks; the fourth trial will show this behavior, since it uses the same video as the third trial.)
Looking at the PsychoJS code, it seems like this might be because both the .stop() and .reset() functions are checking to see if HTMLMediaElement.fastSeek() is supported before resetting the video to the beginning, and there’s nothing to handle the case where this method isn’t supported (as in Chrome), so no reset actually happens. Has anybody found a way around this?