I have google chrome package app.
I need to read locally saved photo and video and give them up to the HTML page.
How can I do this?
I try:
chrome.mediaGalleries.getMediaFileSystems(
{interactive: 'no'},
function(mediaFileSystems){
mediaFileSystems.forEach(
function(item, indx, arr){
var mData = chrome.mediaGalleries.getMediaFileSystemMetadata(item);
console.log(mData);
});
});
But console remains empty.