From the course: Processing: Interactive Data Visualization

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Playing a video loop

Playing a video loop - Processing Tutorial

From the course: Processing: Interactive Data Visualization

Start my 1-month free trial

Playing a video loop

One interesting feature of Processing is the ability to play video files. Now, there are actually several things that you can do with these. You can actually create video files, you can bring them in and you can transform them in one way or another, or what I'm going to do in this particular example is you can bring a video and you can just kind of loop it to repeat. To do this though, I first need to import a library that's included with Processing but is not installed by default. So what I need to do is I need to go up to the menu to Sketch, click on that, and then come down to Import Library. And then from over there, you'll see that there is a video halfway down. I need to come down to video and click on that. Perfect! And it pastes in a small amount of code that says import--that means it's importing our library--and the library is nothing more than a collection of code that we don't actually have to look at. It's now operating in the background. And it's bringing in…

Contents