Created
February 5, 2012 18:45
-
-
Save osdrv/1747129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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