Skip to content

kaios-design/gaia-mediadb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mediadb.js

The mediadb.js lib used in Gaia, extracted from mozilla-b2g/gaia. Please refer to comments in file, or check its usage in the Gallery app.

Permissions

To use this lib, the app should be a privileged or certified app and have permission to use DeviceStorage API. The manifest may look like this,

{
 "type": "privileged",
 "permissions": {
   "storage": {},
   "device-storage:sdcard": { "access": "readwrite" }
 }
}

Here "storage" permission is to enable unlimited indexedDB quota, and "device-storage:sdcard" is to use DeviceStorage API. For more details, check KaiOS's developer portal.

Releases

No releases published

Packages

No packages published