This video took 4.2 seconds to film. With a special camera, they were able to slow it down and calculated the exact timing of the actions within a thousandth of a second to precisely time each action to the beat of the song.
Once you've seen the video "The One Moment", watch "One Moment of Math" to see how they calculated each action to happen precisely.