Sizing video to be browser window background

The dimensions of my video are 1280 × 720.

I was wondering if it is possible to stretch the video so that it will fit into the size of my browser or other browsers depending on an aspect ratio.

I am using the video tag to place a video on the background of my page. I currently have the video playing in the background but I do not know how to size it appropriately.

I would provide a jsfiddle but I’m not sure how to upload my local video to test recreate this situation


Source: html5

Leave a Reply