Detect when a video has reached the end

A or object doesn't automatically provide a notification when it reaches the end of a video. However, it's easy enough to obtain such a notification by checking to see when the video's current time becomes equal to its total duration. When the movie is first read into, you can use the resulting read message that comes out of its right outlet to trigger a getduration message to to get the movie‚Äôs duration (in timescale units) out of the right outlet. Then, you can send regular gettime messages to to get the current time (in timescale units), and compare it to the duration with a >= object. You can use this technique to create a chain reaction of videos, with one playing immediately after another ends.