Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : RFID and Video

$
0
0
I think the last part of his sketch should be:
  1. boolean playingMovie;
  2. void draw() {
  3.   if (playingMovie) {
  4.      image(myVids[0],0,0);
  5.   }
  6.   text(tagID, width/4, height/2 - 24);
  7. }
  8. void serialEvent(Serial rfidPort) {
  9.     tagID = trim(rfidPort.readString());
  10.     if (!playingMovie && tagID.equals("84003435BC")) {
  11.       myVids[0].play();
  12.       playingMovie = true;
  13.   }
  14. }
  15. void movieEvent(Movie m) {
  16.   m.read();
  17. }


Viewing all articles
Browse latest Browse all 1768

Trending Articles