如何使用离子v1中的插件相机发送视频或gif 我尝试使用此代码向我显示空白框架
$scope.gallery= function(){
var options = {
quality: 75,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
mediaType : Camera.MediaType.VIDEO
};
$scope.popover.hide()
$cordovaCamera.getPicture(options).then(function (imageData) {
$scope.imgURI = "data:video/mp4;base64," +imageData;
console.log($scope.imgURI);
sendImage($scope.imgURI);
}, function (err) {
// An error occured. Show a message to the user
});
}
答案 0 :(得分:0)