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
Problem exporting video player applet (Read 479 times)
Problem exporting video player applet
Nov 26th, 2007, 2:24am
 
Hello all,
I been using processing for a while for audio/video java generated synthesis. However this weekend was my first instance working with video played within an applet.
I wrote a simple code and then exported in order to publish it on the web, however I found out that the applet starts but the  video or the applet is never display, it only display a white box of the size assigned to the applet. I though it was a problem with the size of the .mov file, however using 60k .mov or 40mb .mov does not make any different.
Have anyone experienced this same problem?

Here is the code I am using

import processing.video.*;

Movie myMovie;

PFont font2;

void setup() {

 size(800, 400);

 font2 = loadFont("Courier-10.vlw");

 myMovie = new Movie(this, "colortest2.mov");
 myMovie.loop();  

 frameRate(30);
 noSmooth();
}

void draw() {
 background(0);

 tint(255, 200);
 image(myMovie, 200, 100);
 stroke(0);

 textFont(font2);
 fill(255,255,255,255);
 text("TEXT",100, 355);
}  


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


Any insights are much apprciated. Thanks again
Re: Problem exporting video player applet
Reply #1 - Nov 27th, 2007, 12:20am
 
I did some more work on this and is the size of the mov file that makes the applet work or not. The original .mov file was around 40mb. Running 500k .mov work fine.
Page Index Toggle Pages: 1