W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

Device Storage API

From: Doug Turner <doug.turner@gmail.com>
Date: Wed, 30 May 2012 05:13:14 -0700
Message-ID: <CAHni0v9H3ihXf=Ph8wOYF2uzq+9-TcCk3ii1UutYgg9WzY=KxQ@mail.gmail.com>
To: public-device-apis@w3.org
Jonas Sicking has spec out something we're calling Device Storage.  It
allows accessing media files from well known locations.  We are using
this in B2G for our Gallery, Music, and Video players.  It is a very
simple and tight API that allows you to get, store, and enumerate

The interface looks like:


Usage is simple:

var storage = navigator.getDeviceStorage("pictures");
request = storage[0].addNamed(blob, "a/b/c/img100.png");

I am not sure how far along Gallery is, but is this be something that
the DAP would be interested in?

Received on Wednesday, 30 May 2012 12:13:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:54 UTC