The Dancing Traffic Light [video]
youtube.com
youtube.com
Why do you think people never stop to watch a TV in a window? It's because it's not the first TV they've seen and the feed rarely repeats there too.
As far as how they built it, seems like basic computer vision.
What would happen if two people went into the box?