We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
video in an applet (Read 757 times)
video in an applet
Jan 22nd, 2006, 7:01pm
 
Hi

A little confused as to whether video can be used in an applet or not.  I've seen messages in the forum which say you can't but the documentation says you can and I have a working example (see below).  Can anybody clear this up for me and if video can work in an applet, can its playback be made smoother (i.e. is there a way to download the movie before it plays?.  Thanks in advance.

a+
gar


import processing.video.*;
Movie myMovie;

void setup()
{
 size(400, 400);
 background(0);
 // Load and play the video in a loop
 myMovie = new Movie(this, "http://www.pibmug.com/files/cat_herders.mov");
 myMovie.loop();
}

void movieEvent(Movie myMovie) {
 myMovie.read();
}


void draw()
{
 image(myMovie, 20, 20);
}
Re: video in an applet
Reply #1 - Jan 23rd, 2006, 3:33pm
 
last item in the video section of the faq:
http://processing.org/faq/bugs.html#video
Page Index Toggle Pages: 1