Question

I am trying to write a simple media player as a chrome packaged app, and to do that I need to access any folder from the filesystem directly from whithin the app.

Pseudocode

chrome.runtime.getFolderContents(
     'c:/my_music',
     function(contents){ 
          // Do something 
     });

Is that possible? And if so, how? Searching didn't give me a clear "can not do" so... Can I?

Was it helpful?

Solution

The Media Galleries API offers "access media files (images, video, audio) from the user's local disks (with the user's consent)."

It is best suited for your application, as it asks the user for just enough permission to do what you want, and not more.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top