It is reasonable to consider that "web" maybe should not have this capability, and web browsers should provide intuitive UI controls for users to enable/disable the ability for sites to do this to you.
So maybe browsers should offer a setting to cap the data retrieved from each individual domain on metered connections, unless instructed otherwise on a domain-by-domain basis?
I noticed though that the video continued downloading even though I had hit pause.
Good news, though! Looks like we can use detect users on a metered connection with `navigator.connection`, or worst case look for a mobile user agent. Thanks for the feedback!
It seems to be done as a demo right now. Why not just add a big red "click here for a demo" thing?
There are very few things that you can reliably find out over the web. Whether or not a connection is metered isn't one of them.
It would be better to use a manual approval rather than a automated detection.
When I visit youtube, I know that the video is going to start immediately but that wasn't the case with this.
Please don't. There's nothing special about mobile devices that inherently makes them metered, so please do not assume this.
A demo that starts working immediately with no input required is a LOT more impressive and impactful than something behind a "try" button.
129.24 MiB is actually really small for a 15min video.