How can I play a .mp4 movie file during the game?

You should call this, by default it’s set to true so when u play the movie it’s detected u already complete load level and skip the movie.

movieAttributes.bAutoCompleteWhenLoadingCompletes = false;

You also can add this to press any key to skip the movie

movieAttributes.bMoviesAreSkippable = true;