marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.02k stars 1.33k forks source link

Large media file storage #200

Open CharlesWiltgen opened 7 years ago

CharlesWiltgen commented 7 years ago

I'm really excited to find a library that solves "cross-browser storage for all use cases". My use case is that I want to store media files for offline playback. Can I use Store.js for that now? If not, is that a use case that a future release could solve?

marcuswestin commented 7 years ago

I'm confident that we can find a way to store files locally at least in modern browsers!

This will likely depend on #181. Once that's in place it's just a matter of using an audio/video API that supports playback from Files/ArrayBuffers - this wouldn't make sense to put in store.js, but some quick googling pulls up results lots of results like http://stackoverflow.com/questions/32172466/loading-mp3-as-arraybuffer-using-local-file-for-web-audio, and I bet there are lots of libraries for this.

So yes, totally doable! What are you currently using for playback of media files?

marcuswestin commented 7 years ago

Here's another relevant example: https://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/