Create a video jukebox?

edited May 2014 in How To...

Hi, I want to create a kind of video jukebox that will display a list of videos.

When I click a video it will play in a window and loop until I click a different video.

Currently I play video using this code below but obviously this will only play 1 movie.

So my questions are really....

1) what is the easiest method to create a simple UI (this will be used on an Android tablet ultimately)

2) how do play a movie until another option is selected

Thanks.

Phil

void setup(){
    myMovie1 = new Movie(this, "/Users/philspitler/Dropbox/Current Projects/PixelPusher/videos/fire.mov");
    myMovie1.loop();

    myMovie2 = new Movie(this, "/Users/philspitler/Dropbox/Current Projects/PixelPusher/videos/bluestreaks.mov");
    myMovie2.loop();

    myMovie3 = new Movie(this, "/Users/philspitler/Dropbox/Current Projects/PixelPusher/videos/bluestreaks2.mov");
    myMovie3.loop();

    myMovie4 = new Movie(this, "/Users/philspitler/Dropbox/Current Projects/PixelPusher/videos/colorama.mov");
    myMovie4.loop();

    myMovie5 = new Movie(this, "/Users/philspitler/Dropbox/Current Projects/PixelPusher/videos/redsqr.mov");
    myMovie5.loop();

}

void draw() {


       image(myMovie2, 0, 0, width, height);

}
Sign In or Register to comment.