OK thanks for all the information, no problem, let me take a look, x
Hi @sotiri
I know you have probably been quite busy recently with the release of the new PsychoPy version, but have you had a chance to have a look at this yet? Any progress?
Best
Elle
Hi @EJJ, I feel terrible about this, but I have no solution for you yet. To help speed things up, would it be OK if I ask for a minimal working example? FWIW PsychoPy latest also includes a number of MovieStim fixes! Thanks, x
Hi @EJJ, apologies again for the late reply OK I have brought in the legacy browser supporting PIXI, which as it turns out was missing from the projectâs index.html. Could you check if the support fork is now running as expected? I have so far tried Chrome / Samsung Galaxy S10, Chrome / Pixel 2, Safari / 8th generation iPad. Thanks, x
Hi @sotiri, thank you for looking at this. I dont seem to have access to the support fork you linked?
Hi @EJJ, oops, OK, you should have developer access now, sorry, x
Hi,
Sorry for the slow reply! Thank you
- Adding the pixi change to the index.html seems to have fixed the javascript problems.
- Reducing the size of all the stimuli has helped with the black box problem.
It still crashes on older android tablets/phones and Ipads but we have decided to limit our participants to PC users so this isnt a problem.
Thanks for your help with this,
Elle
No problem, I appreciate the follow up, happy coding
Hi @sotiri, sorry to bother you with this again but I have a similar problem to everyone else above. One set of my videos play as black boxes in Safari and Firefox (the experiment plays perfectly in Chrome and Edge but I really want it to work in Safari so that the participants -preschoolers- can use an ipad to play the game). Iâve edited the pixi line in the index file as suggested but it did not fix the issue. Would you be able to have a look if possible? Thanks a lot!
The url is: https://pavlovia.org/run/zeynep/shifting
Best,
Zeynep
Hi @zeynep_c, yes of course, sorry to hear PsychoJS is giving you video playback problems. I have been unable to reproduce on Safari latest, which versions are you targeting in your study? The animations look lovely by the way! x
Thank you for the quick response and glad you liked the animations! I can only try it on two devices at the moment - on Macbook air - safari version 14.0.3 and on ipad air (3rd gen) 14.4.1. Itâd be great if it worked in Firefox too (even if not in safari), the more browser options I can give, the better I think.
Zeynep
Cool, alright, but thatâs the Safari I tried
Oh sorry, I wasnât clear. It is not that scene. When you make a choice of one of the boxes on the table - in the next routine, you see that box lift off and either you find a coin or not. Thatâs the video that plays as a black box although you can hear the audio âWell done, youâve got a coin.â or âoh well, nevermindâ.
Gotcha, alright thanks, that helps a lot, x
It looks like itâs not liking that particular video source, it could be the encoding, but not sure yet
Thanks for looking into it. If it is a codec issue, hopefully itâd be easy to fix.
Hi @sotiri, I was able to resolve this issue by changing the codec info, thank you very much!
My other video (the magic trick video that plays after you collect 3 coins) freezes in Safari. In this post (VideoStim stays static in Safari but not in other browsers), @d.govan suggests that allowing auto play in Safari fixes the issue. This works in Macbook (perfect!) but I cannot find the same option (to allow auto play) in Ipads and I think I looked everything under Settings. Do you have any suggestions for fixing this problem? I tried removing the audio from the video but it did not help either. Thank you!
Zeynep
Hi @zeynep_c, OK glad to hear re-encoding did the trick. About Safari autoplay being so restrictive, I believe setting the noAudio
flag on the corresponding MovieStim
instance should help with that. Is the support fork running as expected? Not sure if your version of PsychoPy gives you access to this level of configuration, but in the 2021.1.3 release you are given a check box as shown below so no manual JS edits would be necessary,
This is great, thank you!!
The support fork worked on my ipad- but yes no sound. I will update the version then as in the current version I can only choose Basic - No audio, there is no playback option.
But then what if I added the sound of this video as a separate component in rewardanimation? Would Safari be ok with playing that sound or is it the same thing as having a video with sound? Do I make sense?