A-B video switcher

 

This is a more refined sort of A-B video switcher patch than the one shown in the “Simplest possible A-B video switcher” example. It has a considerably more sophisticated user interface when viewed in Presentation mode. It will try to open two video files called “A.mov” and “B.mov”, and it also provides buttons for the user to open any other videos to use as the A and B rolls.

Another possibly significant difference is that in this example we stop the movie that is not being viewed, and then when we switch back to that movie we restart it from the place it left off. In the previous example both movies were running all the time. If you need for the two movies always to be synchronized, you can either leave them both running as in the previous example, OR, whenever you stop one jit.qt.movie object, you can get its current ‘time’ attribute value and use that value to set the ‘time’ attribute of the other jit.qt.movie object when you start that one. (That’s not demonstrated in this example.)