You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/31 15:16:33 UTC
[GitHub] [cordova-plugin-camera] jj449 commented on issue #555: cordova
camera plugin ios problem ,
how can i show videos only when camera.getPicture ?
jj449 commented on issue #555: cordova camera plugin ios problem , how can i show videos only when camera.getPicture ?
URL: https://github.com/apache/cordova-plugin-camera/issues/555#issuecomment-580774523
> mediaType: MediaType.VIDEO
thanks for the reply
but as mentioned , I already set mediaType: MediaType.VIDEO (1)
it still can't filter , pictures(photos) appear also .
below is my code :
var options = { quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType:0, // 0:Photo Library, 1=Camera, 2=Saved Album
// allowEdit: true, //allow cropping
targetWidth: 320, //what widht you want after capaturing
targetHeight: 320 ,
mediaType:1 //0=picture ,1=video , 2=Allow selection from all media types
};
navigator.camera.getPicture(select_film_success, film_select_onFail,options);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org