Learn creative coding writing simple programs

125. Simple video player in Processing

Playing video in Processing is now very easy. We just need to import the right library and add a few lines of code. We have different options we can set when playing video: the sound volume, the reproduction speed and we can also choose if to play once or play forever in a loop.

In future episodes we will take a look at what other interesting things we can do with video data.

Tags: video

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
  Do `float` and `int` smell similar?
To highlight code blocks, use ```processing and ``` like this:
  void setup() {
    size(600, 600);