HTML5 Canvas [104]
text messages will not disappear after others are created, but that is just a small detail. The point of this exercise is that, with code like this, you could do almost anything with a running video. You could pause the video, show an animation, and then continue once the animation is done. Or you could pause to ask the user for input and then load a different video. Essentially, you can make the video completely interactive in any way you choose. The model for these events could be very similar to the one we just created.CH6EX8: Creating Simple Video Events
Example 6-8 provides the full code listing for this application.
Example 6-8. Creating simple video events
Canvas Video Transformations: Rotation
Showing a static video on the screen is one thing, but transforming it on the screen using alpha transparency and rotations is quite another. These types of transformations