W3C home > Mailing lists > Public > public-device-apis@w3.org > November 2011

Re: Battery Status API Last Call Feedback

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Tue, 29 Nov 2011 18:25:12 +0100
Message-ID: <4ED51578.5070601@lamouri.fr>
To: public-device-apis@w3.org
On 11/29/2011 06:11 PM, Josh Soref wrote:
> In theory a web site could play a video and calculate how much energy a video costs. Then it could monitor battery and calculate when you're watching videos.
>
> It'd be fairly rough, but if you can calculate that 1% normally takes say 30 minutes to consume, and that you can consume 1% in say 4 minutes by watching a video, then if you see 1% consumed in 4 minutes, you can guess someone was playing a video.
>
> It could probably do similar things to calculate the cost of using GPS and then use it to determine when GPS might have been used.

In a multi-task device, it seems a bit hard to get very accurate 
measures but I agree that in theory such tracking could be done. I doubt 
it is really doable in practice though.
Note that the web app needs to be in a multi-task device to be able to 
do that.

--
Mounir
Received on Tuesday, 29 November 2011 17:25:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:24 GMT