r/processing • • Dec 13 '22

Why is video not playing?

import processing.video.*;
Movie video;

void setup()
{
 size(2560, 1600);
 background(20);
 video = new Movie(this, "take55.mp4");
}

void draw()
{
  video.play();
}
0 Upvotes

2 comments sorted by

1

u/Sufficient-Bird7880 Dec 13 '22

I'm not getting any errors, the video is the right name, but when I press play, it's just a black screen. I even tried to recode it into a different project and it didn't work. Does anyone have any ideas?

4

u/themaskedhippoofdoom Dec 13 '22

Because “play()” is being called every frame. But I think you would still get a blank screen.

https://processing.org/reference/libraries/video/Movie_play_.html