cordova-plugin-media-retrieve
v0.5.4
Published
Cordova ContentProvider Plugin, get meida file list from storage
Downloads
16
Maintainers
Readme
cordova-plugin-media-retrieve
A cordova plugin which can list all the media files
Install
Install with npm
cordova plugin add cordova-plugin-media-retrieve
Usage
Get image list from storage
MediaRetrieve.getImageList(onSuccessCallback,onErrorCallBack)Get audio list from storage
MediaRetrieve.getAudioList(onSuccessCallBack,onErrorCallBack)Get video list from storage
MediaRetrieve.getVideoList(onSuccessCallBack,onErrorCallBack)
Return
return a json object which contains the data you want to get
{
"data":[
{
"name":"display name",
"uri":"content uri",
"path":"absolute path"
},
{
...
}
]
}