質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top