well demos aren't videos like you think, they don't actually record the exact video, but it uses the client to re-create the scene. The recording does something like saving entities events, actions, ect. then on the client it reads those saved information and creates, moves, and does just like it was saved to do.