here is a minimise code
import processing.video.*;
Movie m;
boolean error = false;
void setup(){
size(200,200);
}
void draw(){
background(0);
if (error){
background(255,0,0);
}
}
void keyPressed(){
if (key == 'h'){
String tem= key+".mp4";
try{
m = new Movie (this,tem);
}
catch (Exception e){
error = true;
print("catch is run");
}
}
}
in this, the code in catch will be run once
and the whole sketch frozen.
How can I make the sketch continue to run after catch the exception?