| Reference | Downloads | Github

Study works on chrome but not safari


URL of experiment:

Description of the problem: The study runs perfect online on chrome and offline but the following error pops up on Safari.

Hi Anwar! Try converting the WAV file to an MP3; that’s likely to solve your issue

Thanks so much @thomas_pronk. I changed the the file to mp3. Now I get this error. If you have any insights, I’d appreciate it!

Not sure what this error is about. I tried to reproduce it on MacOS X Cataline with Safari 13.1, but there it worked out. Which version of MacOS X and Safari did you get this error on?

Really? It’s a relief to know its not Safari (perhaps) but the version number. I have Safari Version 14.0.

@thomas_pronk I get the same error on Safari 14.0, @anwarzid something must have changed with the latest version, please leave with us to investigate a bit more. Are you happy giving me developer access to your repo? Here to help, thanks, s.

Thank you @sotiri. Yes, I have given you developer access. There are two experiments (one called tt-at and at-tt) I gave you access to both. They are the same thing. I just couldn’t figure out how to counterbalance online so I created two experiments instead.

Perfect, no problem, thanks, more soon, x

Hey @anwarzid, OK, while a permanent fix is on the way, I made some changes to my fork, which you can copy over to your repo to make it work on Safari. Please note that on top of those library edits, Safari only likes mp3 files. Hope that helps some. Please let me know if you need more support. Thanks for your patience, x

Thank you @sotiri. I clicked the link and indeed it works on Safari. I wanted access to the changes you made, however, the hyperlink “to my fork” brings me to a 404 error page. I would appreciate your insights as to how to get these changes to my projects (at-tt) and (tt-at) as I am still modifying them.

No problem @anwarzid, sorry about the 404, project visibility is set to private and cannot be changed for some reason so I gave you developer access instead. Has that worked?

Getting past this problem was a case of upgrading Tone.js and editing PsychoJS to give Safari the user action trigger it needed to allow for audio playback.

The tricky part is including those changes in your project. My preferred way is to create a custom-lib directory to host the updated PsychoJS, x

@sotiri Thank you for your help. I ended up recreating the project as the error messages persisted. I added the code you suggested in the index.html file and custom-lib folder; however, participants seem to only hear sound only through computer speakers and not when they have earphones on. Do you have any insights as to why this is? (developer access is granted)

No problem, you’re welcome @anwarzid :blush: OK I tried running both AT-TT and at-tt-new locally on my machine and was unable to reproduce the problem. Could it be something else like their earphones being not properly patched in?


Good to see this is on people’s radar-- any idea when the fix will be implemented? I have had the same thing happen when I tested my own experiment out on Safari on Mac (Catalina). It works fine on Firefox, my main browser.