The many sizes of a video element
What is th size of a
The browser has several APIs reporting widths and heights,
but they’re all subtly different!
This blog post is a playground.
It gets your webcam stream and displays it in a
You can change the size constaints that are applied,
and you can change the size of the displayed video.
Based on this,
the page shows the various widths and heights of the video
as reported by different browser APIs.
I’ll follow this post with some analysis of what they all mean!
More by Jim
- Your syntax highlighter is wrong
- Granddad died today
- The Three Ts of Time, Thought and Typing: measuring cost on the web
- I hate telephones
- The sorry state of OpenSSL usability
- The dots do matter: how to scam a Gmail user
- My parents are Flat-Earthers
- How Hacker News stays interesting
- Project C-43: the lost origins of asymmetric crypto
- The hacker hype cycle
- The inception bar: a new phishing method
- Time is running out to catch COVID-19
- A probabilistic pub quiz for nerds
- Smear phishing: a new Android vulnerability