hi thank you for the fast reply
for some reason the routine continues in the background but the video is not closing unless i add the continue button and click on it
Regarding the screen size, the screen actually got smaller when i changed to 100%
Hi @wakecarter, I have a set of 30 youtube links and I want to play those videos randomly for the user of my experiment, So I want to play the video link and it should be embedded within my experiment. However, the order is randomly generated and a particular video link should be played.
Can you please assist me with the following task.
Have you managed to set up your experiment so it plays one video link and an Excel file with the YouTube codes of the 30 videos? I think it should be fairly easy to edit it to take the selected video from the Excel file?
I do have an excel in which I have youtube links of the 30 videos, however I was unable to set up the experiment can you please assist. Also I want to present a questionnaire once the video ends instead of the continue button
@wakecarter I am unable to run your experiment Pavlovia locally , it is not working and giving errors in the version2020.2 of the PsychoPy . Can you please assist
I’m having some difficulty doing this. I can hard code a video url into the html file and it plays, but I’m not sure how to dynamically change it. I have a separate csv that has all of the links (with a loop that adds each url to a list at the start of the experiment), but I’m not sure how to pass it the variable into the html file.
Hi @wakecarter,
Thank you so much for your demos, they have been really helpful!
I am having some difficulty implementing this. Originally, I was getting a " * ReferenceError: showVideo is not defined" I fixed this by editing the code to what you see in the picture below. I also added the specific identifier for the video I want to use. However, I am getting a “404 not found” error. I am not sure how to resolve this, I assume there is some issue with the code finding and presenting the correct video from youtube but I do not know how to resolve the issue. I would appreciate any suggestions you have.
Ah I understand. This was a mistake rather than being something I require. So I should create a html file that contains the youtube link I want to call upon? should this include just the youtube url or also the piece of code below from your original post with my specific youtube video identifier in place of the je5V…?
Thank you! The issue is resolved. This was a great help as all your content on the forum has been while navigating the building of my first multicomponent experiment.
I will post below what I ended up as I had to do a bit of creative mixing and matching to get things working properly and it might help people troubleshoot in the future.
Debugging workaround explained: I kept running into the error in the picture below. I used this workaround from stack overflow to get the video working. However, this meant the continue button was then not present. To solve this, I added most of Wakecarter’s source code to the altered code from stack overflow. One alteration you may have to make after using this alteration is to align text to the left instead of the right in the form section of the code as if may appear somewhere random on the screen otherwise. The code from my working html file is below incase anyone runs into this issue in the future