make video work in proper window, and not freeze