Full-screen video handling.
Some refactoring.