Make it possible to close the video overlay
Encode to target size dynamically

This makes it possible to play on some android devices with smaller
screen resolution than the video resolution.