I think the last part of his sketch should be:
- boolean playingMovie;
- void draw() {
- if (playingMovie) {
- image(myVids[0],0,0);
- }
- text(tagID, width/4, height/2 - 24);
- }
- void serialEvent(Serial rfidPort) {
- tagID = trim(rfidPort.readString());
- if (!playingMovie && tagID.equals("84003435BC")) {
- myVids[0].play();
- playingMovie = true;
- }
- }
- void movieEvent(Movie m) {
- m.read();
- }