I am using Phonegap with an Android device and I need to display the device’s videos.
Do anyone know how I should do that?
This is my code:
function getPhoto(source) {
// Retrieve image file location from specified source
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: destinationType.FILE_URI, sourceType: source });
}
but it is only works with Pictures.
PhoneGap offers a MediaType in Camera.options
“MediaType: Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in nagivator.camera.MediaType (Number)”