Mistake when exporting a code usin video and serial library together

Hi! I am making a remote control for a TV using serial comunication and a video. This code plays a video and names the serial ports. In fact it does, but when I export it to an aplication it crashes.

Thanks for the help. I am usin windows 7 in a getaway Core i5

import processing.video.*; import processing.serial.*;

Movie movie; Serial myPort; // Create object from Serial class int val;

void setup() { size(640, 360); background(0); movie = new Movie(this, "Teclado.mp4"); movie.loop(); String portName = Serial.list()[0]; myPort = new Serial(this, portName, 9600); println(Serial.list());

}

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

void draw() {

image(movie, 0, 0, width, height); }

Comments

  • Check the Using Processing category, there are many similar threads. Also check Processing forum rules and advices explaining how to format your code...

    Basically, you should try another version of Processing (3.0bx seems better) to do your export.

Sign In or Register to comment.