Skip to content
VLCJ binding for Processing
Branch: master
Clone or download
linux-man VLCJ update
Minor tweaks
Latest commit 7905b66 Feb 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Initial commit Dec 31, 2018
examples VLCJ update Feb 17, 2019
lib VLCJ update Feb 17, 2019
resources VLCJ update Feb 17, 2019
src/VLCJVideo VLCJ update Feb 17, 2019
web Initial commit Dec 31, 2018
.classpath Initial commit Dec 31, 2018
.project Initial commit Dec 31, 2018
LICENSE Update LICENSE Dec 31, 2018
README.md VLCJ update Feb 17, 2019

README.md

VLCJVideo

VLCJ binding for Processing.

Simple wrapper with unified processing video interface.

Forked from the VLCJVideo library by Oleg Sidorov.

Dependencies

VLC Media Player

Requires VLC >= 3.06. It may not work with older versions.

Example

import VLCJVideo.*;

VLCJVideo video;

void setup() {
  size(640, 360);
  video = new VLCJVideo(this);
  video.openMedia("https://www.sample-videos.com/video123/mp4/360/big_buck_bunny_360p_30mb.mp4");
  video.loop();
  video.play();
}

void draw() {
  background(0);
  image(video, 0, 0);
}

Methods

Constructor:

VLCJVideo(this, options[])

options is a string array (optional). By default VLCJVideo is initialized with "-V dummy" and "--no-video-title-show"

String[] options = {"--video-filter", "sepia:wave"};
video = new VLCJVideo(this, options);

void openMedia(String mrl)

void play()

void stop()

void pause()

void jump(float pos)

pos in seconds

void loop()

void noLoop()

void mute()

void setVolume(float volume)

volume between 0.0 and 1.0

float time()

float duration()

float volume()

boolean isReady()

boolean isPlaying()

boolean isPlayable()

boolean isSeekable()

boolean canPause()

void bind(MediaPlayerEventType type, Runnable handler)

See "Events" example

You can’t perform that action at this time.