Changes

Jump to: navigation, search

Firefox OS/Cloud Storage

1,943 bytes removed, 03:46, 29 April 2015
no edit summary
= Cloud Storage ={{Draft}}== Overview ==This project aims at to support FirefoxOS to be a bridge between framework for web apps and cloud storages to provide user much better interact with cloud storage user experience on FirefoxOS device.<br />[[File:Cloud Storage Support Overview.png]]Cloud Storage framework wants to support following main features
*Universal Storage API
FireFoxOS supports Universal Storage API is a general API for web apps a universal API to access all kinds of storage, such as internal storage, SDCard, USB mass storage, cloud storage, etc.
*Virtual Storage Interface
Virtual Storage Interface is an abstract interface which defining the plugin system for cloud storage operations for FirefoxOS. Through Virtual Storage Interface, user can easy mount a file system on FirefoxOSframework to extend cloud storage option.
== Use cases =Cloud Storage Framework ==== Play media files saved on cloud =Universal Storage API ==John saves his media files on dropbox or any other cloud Universal Storage API is a general API for web apps to access all kinds of storage and wants to play these media online on his mobile device.<br />In traditionalAccording to different purposes, John needs Universal Storage API can be separated into following two categories*Document based APIDocument based API is used to do with following steps<br help web apps save/>#Open the cloud storage appoperate their application data, such as dropbox and google driveindexedDB, and download on the media files to the mobile devicecloud storage.<br />#Open the player app*Filesystem based APIFilesystem based API supports web apps to access cloud storage with filesystem operations, such as Gallery and Musicfile create, and play the media files locally.<br />On FirefoxOS devicedelete, open, read, write, close, the steps can be reduced to<br />#Open the player app and play the media files on cloud storage directlyetc.
=== Create and share files on cloud =Virtual Storage Interface ==Bob wants to take a picture and share it with friend on flickr.<br />In traditional, Bob needs to do with following steps<br />#Open the camera app to take a picture and save the file on the device.<br />#(Optional) Open a third party app to edit the picture on the device.<br />#Open the flickr app to upload the file and set it as shared.<br />On FirefoxOS device, the steps can be reduced to<br />#Open the camera app to take a picture and save and share the file on Virtual Storage Interface is plugin system for cloud storage directly.<br />#(Optional) Open a third party app framework to edit the picture on cooperate with different cloud storage directly.<br />
==Proposed Solution(s) = File management between clouds ==== FUSE based solution ===Amy wants to copy a finished work document form her personal dropbox space to the company google drive space<br />In traditional, Amy needs to do with following steps<br />#Open the dropbox app and download the document file to device.#Open the google drive app and upload the document file.<br />On FirefoxOS device, the steps can be reduced to<br />#Open a file browser app and copy the document from dropbox to google drive directly.
== Proposed framework =JS library solution =[[File:Cloud Storage Support.png]]=== Universal Storage API ===Universal Storage API is a webAPI for all web app to access the device filesystem. This API support web apps to create, remove, read, write, traverse, open and close files and directories on internal storage, SDcard, Cloud Storage, USB mass storage and NAS with the same interface.<br />Currently, DeviceStorageAPI is targeted as the first version of Universal Storage API. DeviceStorageAPI has already been used for the internal storage and SDcard accessing.<br />=== Virtual Storage Interface ===Virtual Storage Interface is an interface for FirefoxOS to accessing different kinds of storage with defined storage operations. By implementing the operations of Virtual Storage Interface with the public APIs of cloud storage, cloud storage can easy camouflage as a device storage in FirefoxOS.<br />=== In discussion issues =Framework Issues ==
*Cloud Storage Account management and Authentication
*Data cache/buffering
33
edits

Navigation menu