# Video does not play on Pavlovia, but no error messages

**URL:** <https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703>\
**Category:** Online experiments\
**Created:** [September 23, 2020, 5:30am UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703 "2020-09-23T05:30:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![feygele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/feygele/32/10960_2.png) [@feygele](https://discourse.psychopy.org/u/feygele)\
**Post date:** [September 23, 2020, 5:30am UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/1 "2020-09-23T05:30:24Z")

</div>

URL of experiment: [https://pavlovia.org/feygele/cl\_acceptability\_judgement](https://pavlovia.org/feygele/cl_acceptability_judgement)

Hello all,  
I have a problem with running video files in Pavlovia (an experiment in a pilot mode now).  
The files are in html/resources/images on Gitlab, I have tried different formats (mov, mp4, h.264.mp4, currently working with h.264.mp4 files), but the same problems persist.

I have two video routines: one with the constant movie file (the example), the other with movie file set every repeat from the loop file (the trial video). Both work just fine on my computer, but different problems occur with the two routines online.

- The first example video (constant) is played, but after it ends, it does not disappear and therefore overlaps with the text that should follow the video.

- The trial video (set every repeat from file) can’t be seen on the screen. If you exit the full-screen mode while the video is playing, you can catch and see the end of it, but if you click on the slider and proceed to the next video, it does not play as well. But I do not get the error messages.

Also tried different browsers, same effect.  
I would be thankful for any suggestions!

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [September 23, 2020, 11:04am UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/2 "2020-09-23T11:04:06Z")

</div>

Hi Feygele,

I don’t have a solution yet, just a heads-up that we’re working hard on ironing out issues with video in PsychoJS. It may take a little while though. If no-one replies within, say, the end of next week, please give another shout.

Best, Thomas

---

<div class="post-metadata">

**Author:** ![feygele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/feygele/32/10960_2.png) [@feygele](https://discourse.psychopy.org/u/feygele)\
**Post date:** [September 30, 2020, 5:52pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/3 "2020-09-30T17:52:11Z")

</div>

Thanks, Thomas!  
So far nobody replied and the same problems persist.

Among the measures that I tried (some of them out of despair) and they did not work:

- Change the order of presentation from random to sequential;

- Change video format & size.

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [September 30, 2020, 6:08pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/4 "2020-09-30T18:08:36Z")

</div>

Hey @feygele, sorry to hear PsychoJS is giving you video playback problems. Because I lack sufficient rights to access the repo you link to, would it be possible to send me your .psyexp so that I can investigate a bit further? Alternatively, you can add me as a project member in the developer role via gitlab settings. Here to help, thanks, s.

 ![Screenshot 2020-09-30 at 19.07.31](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/f/ef24368fe05b59a277a7cc0f12f538c941933903.jpeg)

---

<div class="post-metadata">

**Author:** ![feygele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/feygele/32/10960_2.png) [@feygele](https://discourse.psychopy.org/u/feygele)\
**Post date:** [September 30, 2020, 6:13pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/5 "2020-09-30T18:13:40Z")

</div>

Thanks @sotiri, I have added you as a project member!

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [September 30, 2020, 6:18pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/6 "2020-09-30T18:18:21Z")

</div>

Alright, perfect, thanks, x

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 12:21pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/7 "2020-10-01T12:21:45Z")

</div>

Hey @feygele, is this more or less what you had in mind?

> **[cl\_accept\_judgement \[PsychoPy\]](https://run.pavlovia.org/thewhodidthis/cl_acceptability_judgement/)**

---

<div class="post-metadata">

**Author:** ![feygele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/feygele/32/10960_2.png) [@feygele](https://discourse.psychopy.org/u/feygele)\
**Post date:** [October 1, 2020, 3:43pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/8 "2020-10-01T15:43:05Z")

</div>

Hello @sotiri, thanks!! Yes, now the video plays great! But the grid doesn’t work in the demo 🙂

In the second routine, trials, (the one with the video set from the file every repeat) there will be no text, just the grid and the video.

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 3:51pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/9 "2020-10-01T15:51:27Z")

</div>

OK great, if by grid you mean the slider at the bottom, there seems to be [an issue with PsychoJS](https://github.com/psychopy/psychojs/issues/195) in that you have to drag from the middle of the range? 😊

---

<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:** [October 1, 2020, 3:54pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/10 "2020-10-01T15:54:23Z")

</div>

I’m getting issues with videos (crashing without an error at the end of the second play) which I finally solved (I think) by ending the trial just before the video was supposed to end.

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 4:09pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/11 "2020-10-01T16:09:52Z")

</div>

Thanks for flagging, we have a couple of patches (upgrading PixiJS) on the way dealing with video playback that should hopefully take away some of those worries. [My fork](https://gitlab.pavlovia.org/thewhodidthis/cl_acceptability_judgement) of @feygele’s project includes those changes, x

---

<div class="post-metadata">

**Author:** ![feygele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/feygele/32/10960_2.png) [@feygele](https://discourse.psychopy.org/u/feygele)\
**Post date:** [October 1, 2020, 4:18pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/12 "2020-10-01T16:18:15Z")

</div>

Yes, thanks so much - the slider works fine if you drag from the middle!

However, I can’t access the fork for some reason (the link doesn’t work and I don’t see forks in the project).

upd: thanks for the access!

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 4:38pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/13 "2020-10-01T16:38:20Z")

</div>

OK thanks, sorry about that, gave you developer permissions just now, but it might not be necessary except for reference. I’m working on a Merge Request for you to accept the changes into your project.

It is very likely that the Pavlovia build of PsychoJS gets upgraded over the next few days, but for the time being you need to be careful, once the changes are in, some files like ‘index.html’ get overwritten when you choose export HTML in PsychoPy 😊

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 4:44pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/14 "2020-10-01T16:44:26Z")

</div>

Sorry another thing I did was give the example movie an exact duration (3.32 instead of 3.5) if that’s OK with you, x

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [October 1, 2020, 5:10pm UTC](https://discourse.psychopy.org/t/video-does-not-play-on-pavlovia-but-no-error-messages/16703/15 "2020-10-01T17:10:41Z")

</div>

OK, Merge Request issued, hope that helps some, x
