Giter Club home page Giter Club logo

vlcjvideo's Introduction

VLCJVideo

VLCJ binding for Processing.

Simple wrapper with unified processing video interface.

Dependencies

vlcj-4

VLC Media Player 3.x or later.

Example

import VLCJVideo.*;

VLCJVideo video;

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

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

Methods

Constructor:

VLCJVideo(this, options[])

options is a string array (optional).

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

void open(String mrl)

void openAndPlay(String mrl)

void play()

void stop()

void pause()

void setPause(boolean pause)

void setTime(long time)

time in miliseconds

void setPosition(float position)

between 0.0 and 1.0 as percentage

void setRepeat(boolean repeat)

void setVolume(int volume)

0-200 as percentage

void setMute(boolean mute)

State state()

See "states" example

long time()

In miliseconds

float position()

long duration()

In miliseconds

long length()

same as duration()

int volume()

boolean isReady()

boolean isPlaying()

boolean isPaused()

boolean isStopped()

boolean isPlayable()

boolean isSeekable()

boolean canPause()

boolean getRepeat()

boolean isMute()

void bind(MediaPlayerEventType type, Runnable handler)

See "bind" example

void dispose()

Equalizer Methods

void setEqualizer()

void setEqualizer(String presetName)

void setEqualizer(int presetIndex)

void noEqualizer()

void setPreamp(float newPreamp)

void setAmp(int index, float newAmp)

void setAmps(float[] newAmps)

boolean hasEqualizer()

String[] presets()

boolean isPreset(String name)

int presetIndex()

String preset()

float preamp()

float amp(int index)

float[] amps()

vlcjvideo's People

Contributors

linux-man avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vlcjvideo's Issues

To many isReady() checks

public boolean isPlayable() {
		return isReady() && isReady() && mediaPlayer.isPlayable();
	}

	public boolean isSeekable() {
		return isReady()  && isReady() && mediaPlayer.isSeekable();
}

Videos in examples are not visible due to Unsecure URL source

The demos are using a URL from a webpage that has an insecure SSL cert, making videos to not play on the examples sketches. Not really an issue with the library itself but just a heads up about the examples.

For example video.openAndPlay("https://www.sample-videos.com/video123/mp4/360/big_buck_bunny_360p_30mb.mp4"); shows the error if I copy and open the url in firefox.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.