2
我怎麼能離子V1 我試着用這個代碼中使用插件攝像頭髮送視頻或gif發送視頻它顯示我的空白幀我如何使用插件codova插件相機離子V1
$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
});
}