psychopy.org | Reference | Downloads | Github

Delay in playing videos and problems with Youtube embedding

URL of experiment: https://pavlovia.org/Yaara_Sarig/masc_online

Description of the problem: My experiment consists of several .png that displays instructions, followed by a video clip, and then another .png that displays multi choice question. The participant should click on one of 1,2,3,4 and then the experiment shows a following video and so on, until the last video is run.
The experiment was loader to Pavlovia but we encountered several problems:
1- after the videos were loaded, the video clips were stuck for several seconds
2 - when trying to embed the video from youtube
a - youtube extends the video clip with there own short video for enabling the participant to replay etc. This is not related at allto the experimant
b- the participant needs to manually press continue to display the question.

Is there a way to run the experiment from the web, without the need to load the movie into the participant computer, but to run it from the web site ?

Alternatively is there a way to run the video from youtube, without youtube adding its video suggestions to the movie at the end and enable the following question to be displayed automatically without the participant intervention ?

Thank you

YouTube has become less appropriate for experiments in recent years. Try using Vimeo instead, or hosting the video on Google drive.

I tryied to embedded the video from the google drive, but my expirement wouldent play the video. Do you have an example fof how to embedd the video in the code?

Try the following. I’ve not tried this in PsychoPy myself yet

<iframe src="https://drive.google.com/file/d/1dr9tnB_0h2FG8APMN_HYbr9UgGXDVu-Q/view" width="640" height="480"></iframe>

The video has to be set to public.