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 2018/11/05 07:30:52 UTC

[GitHub] prashant-93 opened a new issue #367: Unable to open Front camera in ANDROID

prashant-93 opened a new issue #367: Unable to open Front camera in ANDROID
URL: https://github.com/apache/cordova-plugin-camera/issues/367
 
 
   Hi,
   
   I was trying to implement the camera plugin in ionic 3. and i want to open the front camera by default or any method by which we can flip the camera on some user action.
   I am using the following camera options;
   `this.cameraoptions = {
         quality: 50,
         destinationType: this.camera.DestinationType.DATA_URL,
         encodingType: this.camera.EncodingType.JPEG,
         mediaType: this.camera.MediaType.PICTURE,
         correctOrientation: true,
         sourceType: this.camera.PictureSourceType.CAMERA,
         cameraDirection: 1,
       }`
    
   After setting the cameraDirection to 1 it still opens the back camera. Is there any identifier by which I can detect the image captured is from front camera or not.
    

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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