Ionic 3 Tutorial #22 Camera Preview (take picture)

preview_player
Показать описание
How to take picture from camera ionic freamwork, cordova preview camera take picture and show,

Рекомендации по теме
Комментарии
Автор

Do you know how can i preview the camera in a div?

TehRealNeto
Автор

can you help me out, How to open front facing cam by default in cordova

thirumalaivasan
Автор

Hello friend, I have seen your video and in the options you use DATA_URL to show the image, currently ionic 3 shows in your documentation:

const options: CameraOptions = {
quality: 100
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
}

this.camera.getPicture (options) .then ((imageData) => {
// imageData is either a base64 encoded string or a file URI
// If it's base64 (DATA_URL):
let base64Image = 'data: image / jpeg; base64, ' + imageData;
}, (err) => {
// Handle error
});

and this FILE_URL in the options, according to ionic I recommend using this option, but if this does not show the image, can you tell me what I have to do to show the image from FILE_URL? or make a video about that? greetings and thanks for your videos

danielchirinosr
Автор

do you know how to set front camera by default?

luigiguevarra
Автор

do you know why the app crashes when attempting to take a picture? great video by the way

eyebagels
Автор

Bad title. You should refer to the actual API

ttbooster