Or, you know, you could ask users if they want to download it :-).
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.
Or a "The download will begin in 10 seconds. Press the pause button to stop it"
> or worst case look for a mobile user agent
Please don't. There's nothing special about mobile devices that inherently makes them metered, so please do not assume this.
Even in big cities in India people only have 1 or 2 GB per monthly limit on their broadband connection for their PCs.
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.
Re:WebTorrent – BitTorrent over WebRTC
by CyberDildonics on Monday January 18, 2016 @10:14AM
(#10924808)
I don't go to youtube to read. You've got something genuinely extremely useful, but at the moment you are poisoning the well.
Re:WebTorrent – BitTorrent over WebRTC
by ComodoHacker on Monday January 18, 2016 @03:54AM
(#10923333)
Could you explain please, how can it work in Firefox with media.peerconnection.enabled=false? What exact features of WebRTC are you using?
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!