When a still image works your code is ok. But for playing a movie on a PC, the CODEC for that movie format must be installed on the PC.

Windows comes with standard codecs so normally you should be able to play mpg, but maybe that mpg file has some special format that is not supported.