In this section, we are going to create a simple video controller tool that is similar to common video jockey equipment that mixes videos and applies effects in real time. Take a look of what we have done in the Chapter 3, Image Processing, when we worked with digital video with pix_film
.
If we want to change the video playing, we have to click on the open message. When we are working in a live performance, we would like the audience to immerse into the visual imagery. It is not a good idea to switch back and forth to the patch window to click on the messages. In this case, we can make use of the keyboard object, such as the gemkeyboard
.
In the patch, we have assigned the numeric keys, 1, 2, and 3 to select different videos for playback. If we repeatedly press the same key, we will notice that the same video will playback from beginning again and again. In some applications, you may not want this. To handle it, we introduce another object—change
.
The change...