I am trying to keep the height and width proportional to a 16:9 aspect ratio on any screen size.
The problem I am encountering is:
I have a video on my website that follows a 16:9 aspect ratio format, with a width of 1280 and a height of 720. I calculate the dimensions based on the screen width and height.
On my computer, everything displays correctly. However, when viewing on my friend's computer, the video does not display properly. Upon debugging, I discovered that the width is set to 1280 and the height to 670 on my friend's machine (as the bookmark toolbar is enabled). This height discrepancy is causing the video to not display properly.
Is there a way to maintain the width and height proportionally according to the 16:9 format?