I want to play an instruction movie in our online experiment that will be conducted using cell phones or tablets. The movie plays perfectly when piloting on my laptop (using firefox or google chrome), but the error message below appears when piloting on my iPhone (using safari or chrome):
- when attempting to play MovieStim: movieTEST
- NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
I allowed pop-ups for google chrome on my iPhone as in another post it was suggested this might have been the problem. In addition, I have tried to add a line of code in which the movie only plays under the condition a button is clicked on as suggested somewehre else. That made no difference.
The movie is in mp4 and I have set the size to a displayble width and heigth.
Any additonal tips are more than welcome.
Hi there @MaMorand,
Which version of PsychoPy are you currently using?
I am using PsychoPy v2022.2.4 (the newest?).
Thank so much. Would you be able to share your .psyexp file so that I can take a look? For now you don’t need to share any supporting resources etc., just the experiment itself is fine.
As the experiment is not finished yet, I have added a place holder where the movie will be. It works remotely as well as on pavlovia when piloting with my laptop. On my mobile device it didn’t work. I have added you on gitlab as a project member. However, I’m not sure which role you need to have, to be able to look at it.
And here’s the .psyexp file:
Deutsch-Alpha1-v2.psyexp (75.8 KB)
The movie is in the third routine.
Thanks so much @MaMorand,
I can’t see the files in the gitlab project, but I should be fine with the .psyexp file. I’ll take a look and get back to you asap
Sorry for the multiple messages @MaMorand, but can I just check - this doesn’t look like the version where you’ve added the button clicked fix, is that correct? Do you still have that version by any chance? No problem if not!
No worries, @Kimberley_Dundas.
No I don’t have that version anymore as it did not make any difference, I have deleted it again.
@Kimberley_Dundas do you have any ideas how to solve the issue? Or any tipps on what else I could try changing? Or did anybody else have similar issues?
I am having the same issue. Mine works on a desktop and android mobile but not on an iphone. The iphone user gets the same error .
Hi @MaMorand and @gdumkri,
I’ve done some testing myself and this looks like a bug occurring on iPhones only, following one of their security updates. Thank you so much for bringing it to our attention! The ‘good’ news is that I’m able to replicate your issue exactly, and have passed this on to our web development team who are working on a fix.
If I find a workaround in the meantime (or certainly if anyone else does) I’ll be sure to let you know. Otherwise the fix will be implemented on the PsychoJS side and so shouldn’t require you to do anything to your experiment, it should just work as expected once the fix is in place.
Thank you so much again, I’ll be back in touch soon!
Thank you very much for the update. Looking forward to the news once it’s fixed. Luckily, we plan on conducting the experiment not in the very near future. Also good to know that it’s only an iPhone problem (thank you @gdumkri).
Hi @MaMorand ,
To clarify, it seems it doesn’t work on any Apple device. We’ve tested it on an iphone and an ipad.