package com.haxademic.demo.media.video;

import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.debug.DebugView;
import com.haxademic.core.draw.image.ImageUtil;
import com.haxademic.core.media.video.MovieBuffer;

public class Demo_MovieBuffer 
extends PAppletHax {
	public static void main(String args[]) { arguments = args; PAppletHax.main(Thread.currentThread().getStackTrace()[1].getClassName()); }

	protected MovieBuffer movieBuffer;
	
	protected void firstFrame() {
		movieBuffer = new MovieBuffer(DemoAssets.movieFractalCube());
//		movieBuffer = new MovieBuffer(FileUtil.getPath(DemoAssets.movieFractalCubePath));
//		movieBuffer = new MovieBuffer("D:\\workspace\\project\\video-1.mp4");
		movieBuffer.movie.loop();
	}

	protected void drawApp() {
		p.background(0);
		if(movieBuffer.buffer != null) {
			if(movieBuffer.movie.isPlaying() == false) movieBuffer.movie.play();
			DebugView.setTexture("movieBuffer.buffer", movieBuffer.buffer);
			ImageUtil.cropFillCopyImage(movieBuffer.buffer, p.g, false);
//			p.image(movieBuffer.buffer, 0, 0);
//			p.image(movieBuffer.movie, 0, 0);
		}
	}
	
}

package com.haxademic.demo.media.video;

import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.debug.DebugView;
import com.haxademic.core.draw.image.ImageUtil;
import com.haxademic.core.media.DemoAssets;
import com.haxademic.core.media.video.MovieBuffer;

public class Demo_MovieBuffer 
extends PAppletHax {
	public static void main(String args[]) { arguments = args; PAppletHax.main(Thread.currentThread().getStackTrace()[1].getClassName()); }

	protected MovieBuffer movieBuffer;
	
	protected void firstFrame() {
		movieBuffer = new MovieBuffer(DemoAssets.movieFractalCube());
//		movieBuffer = new MovieBuffer(FileUtil.getPath(DemoAssets.movieFractalCubePath));
//		movieBuffer = new MovieBuffer("D:\\workspace\\project\\video-1.mp4");
		movieBuffer.movie.loop();
	}

	protected void drawApp() {
		p.background(0);
		if(movieBuffer.buffer != null) {
			if(movieBuffer.movie.isPlaying() == false) movieBuffer.movie.play();
			DebugView.setTexture("movieBuffer.buffer", movieBuffer.buffer);
			ImageUtil.cropFillCopyImage(movieBuffer.buffer, p.g, false);
//			p.image(movieBuffer.buffer, 0, 0);
//			p.image(movieBuffer.movie, 0, 0);
		}
	}
	
}

Fix MovieBuffer demo inports