Summary:This modal window will play HTML5 videos at a maximum height and width based on browser window dimensions. The videos will always fit within the window while maintaining it's correct aspect ratio, also removing the black bars that can occur on the top, bottom and sides.
Notes:YouTube tends to encode all their 2.35:1 videos within a 16x9 Container. This will force encode black bars on the top and bottom of the video. Therefore using the 16x9 container is recommended.
Play 2.35:1 video
Play 16x9 Video
Play Standard 4x3 Movie
Play UK Pal Video
YouTube UK PAL
The video below is an exaple of a 2.35:1 video being encoded at 16:9 by YouTube, physically adding the black bars on the top and bottom.