Skip to content

Instantly share code, notes, and snippets.

@osdrv
Created February 5, 2012 18:45
Show Gist options
  • Save osdrv/1747129 to your computer and use it in GitHub Desktop.
Save osdrv/1747129 to your computer and use it in GitHub Desktop.
import processing.video.*;
import processing.opengl.*;
final static short DISPLAY_WIDTH = 1400;
final static short DISPLAY_HEIGHT = 800;
Movie movie;
public void setup() {
background(0);
noStroke();
size( DISPLAY_WIDTH, DISPLAY_HEIGHT, OPENGL );
movie = new Movie( this, "http://zz.zz.zz.zz/master.m3u8?cid=some_cool_id" );
// movie = new Movie( this, "http://some_internal_domain/video.mp4" );
movie.noLoop();
movie.play();
}
public void draw() {
background( 0 );
image( movie, 0, 0, movie.width, movie.height );
}
void movieEvent(Movie m) {
movie.read();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment