0.5.4 • Published 8 years ago
cordova-plugin-media-retrieve v0.5.4
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"
},
{
...
}
]
}