GLVideo the future video library for processing

This library uses GStreamer-1.0 (and hence possibility of hardware acceleration). First you need to make sure you can use library on vanilla processing, for Archlinux this may need a re-compile see https://github.com/monkstone/processing-glvideo. Here is the sketch which in my hands actually loads quicker in JRubyArt than from the processing ide!!!

load_library :glvideo

include_package 'gohai.glvideo'

attr_reader :video

def setup
  sketch_title 'Single Video'
  @video = GLMovie.new(self, data_path('launch1.mp4'))
  video.loop
end

def draw
  background(0)
  video.read if video.available
  image(video, 0, 0, width, height)
end

def settings
  size(560, 406, P2D)
end