Adjust the video size based on the window size