Movie stim is just a black box on Pavlovia

Alright, great :+1: If you mean sourcing the audio separately while the video is on mute, I would expect that would work same as e.g. Choice_code, non? x

This works great on Safari 14.x version now, thank you!
For version 13, we get the ā€œReference error, cannot find variable asarrayā€. I had put the code below in the Begin Experiment tab of rewardanimation to fix the same error in version 14.x. But apparently it doesn’t work in the older version. Do you have any suggestions? :slight_smile:

let asarray=function(something) {
return something;
}

No worries @zeynep_c, is that the same repo? Can’t find any references to asarray in my clone, x

oh, yes it is, I’ll sync again in case it didn’t…

Ah cool, thanks, x

Hmm, I did but now in both my ipad using safari 14.x and on chrome on my laptop -which always worked- I get the same asarray error when it comes to the magic trick.
The code I used is below, but it doesn’t seem to work anyway.

Alright, no worries, let me check, x

I’ve set the audio start time to 0 for the magic trick audio files and it works again on Chrome and Safari v 14 (not sure if this is a good fix but saw that audio duration not being set was an issue in some other posts). I’m now asking around to see if it works in different browsers, esp older Safari browsers.

Sounds good, OK about the asarray function expression, I believe moving that block of code over to the Before Experiment tab is all that would be required to make it work across the rest of the script, x

1 Like