# Can't get video stim to run for trials

**URL:** <https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190>\
**Category:** Online experiments\
**Created:** [July 27, 2022, 7:59am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190 "2022-07-27T07:59:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayeh.alhasan](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ayeh.alhasan](https://discourse.psychopy.org/u/ayeh.alhasan)\
**Post date:** [July 27, 2022, 7:59am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/1 "2022-07-27T07:59:08Z")

</div>

URL of experiment: [Study1A\_Pavlovia [PsychoPy]](https://pavlovia.org/run/Ayeh/study1a_pavlovia)

Description of the problem:

Hi there and thank you for attending to my topic! I’m completely new to psychopy and pavlovia and have been reading other threads on here for some time now but still couldn’t find a fix for this. I’m having an issue running some video stimuli for an online experiment on pavlovia. My actual experiment involves both video and image stimuli in 2 separate blocks which are counterbalanced between subjects. I got that design built locally and running through psychopy but as soon as I tried running it online it didn’t work. I tried a number of things as suggested in different threads but nothing seems to work. I hence tried to simplify the study and start building and testing it one step at a time. I am able to run single videos, however as soon as I put in a loop for trials that reads in conditions from ClipBlock.xlsx and uses $clippath to run videos, I get the following error:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/4/94b2f422cc8ecc16e190b1cb6a2bfdbe9798c74f.png)

Any suggestions?

Thanks a bunch!  
Aya

---

<div class="post-metadata">

**Author:** ![ayeh.alhasan](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ayeh.alhasan](https://discourse.psychopy.org/u/ayeh.alhasan)\
**Post date:** [July 27, 2022, 8:01am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/2 "2022-07-27T08:01:57Z")

</div>

Also, here’s the gitlab link if handy : [Sign in · GitLab](https://gitlab.pavlovia.org/Ayeh/study1a_pavlovia)

---

<div class="post-metadata">

**Author:** ![ayeh.alhasan](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ayeh.alhasan](https://discourse.psychopy.org/u/ayeh.alhasan)\
**Post date:** [August 1, 2022, 1:52am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/3 "2022-08-01T01:52:29Z")

</div>

Hi team,

I’m still stuck and would really appreciate any help with this.

Thank you,  
Aya

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [August 1, 2022, 6:54am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/4 "2022-08-01T06:54:34Z")

</div>

The error appears to be “defineProperty is not a function “

Is “is owned by context “ your experiment name? Is so, what is line 381 of the JS?

---

<div class="post-metadata">

**Author:** ![ayeh.alhasan](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ayeh.alhasan](https://discourse.psychopy.org/u/ayeh.alhasan)\
**Post date:** [August 1, 2022, 7:20am UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/5 "2022-08-01T07:20:27Z")

</div>

Hi wakecarter, thanks for replying.

No, “is owned by context” in not my experiment name. The word ‘Context’, however, is used as a parameter in the xlsx file. I previously tried removing all parameters other than the one with the path to videos but still got the same errors.

here’s line 381 of JS:  
return Scheduler.Event.FLIP\_REPEAT;

it is part of the following if statement  
// refresh the screen if continuing  
if (continueRoutine) {  
return Scheduler.Event.FLIP\_REPEAT;  
} else {  
return Scheduler.Event.NEXT;  
}

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [August 1, 2022, 7:30pm UTC](https://discourse.psychopy.org/t/cant-get-video-stim-to-run-for-trials/30190/6 "2022-08-01T19:30:32Z")

</div>

Try changing the name of some of your variables.
