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/03/22 15:56:01 UTC

[GitHub] [cordova-plugin-camera] ztj1993 opened a new issue #573: Android 10 select video return address error

ztj1993 opened a new issue #573: Android 10 select video return address error
URL: https://github.com/apache/cordova-plugin-camera/issues/573
 
 
   # Bug Report
   Android 10 select video return address error.
   I tested OK on Android 8.
   
   ## Problem
   android 10
   
   ### What is expected to happen?
   ```
   I/chromium: [INFO:CONSOLE(67)] "/storage/emulated/0/DCIM/Camera/VID_20200322_153048.mp4",
   ```
   
   ### What does actually happen?
   ```
   D/CameraLauncher: File location is: null
   W/ContentResolver: Failed to get type for: content://com.google.android.apps.photos.contentprovider/-1/2/content%3A%2F%2Fmedia%2Fexternal%2Fvideo%2Fmedia%2F28/ORIGINAL/NONE/1039573866 (Invalid column latitude)
   ```
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
           navigator.camera.getPicture(function (videoURI) {
               console.log(videoURI);
               alert(videoURI);
           }, function (message) {
               console.log('Failed because: ' + message);
           }, {
               mediaType: Camera.MediaType.VIDEO,
               destinationType: Camera.DestinationType.NATIVE_URI,
               sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
           });
   ```
   or
   ```
   Camera.DestinationType.FILE_URI
   ```
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
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


[GitHub] [cordova-plugin-camera] tmk1991 commented on issue #573: Android 10 select video return path error

Posted by GitBox <gi...@apache.org>.
tmk1991 commented on issue #573: Android 10 select video return path error
URL: https://github.com/apache/cordova-plugin-camera/issues/573#issuecomment-607084243
 
 
   Similar issue using the following in android 10:
   
   ```
       const options: CameraOptions = {
         quality: 40,
         targetHeight: 1000,
         targetWidth: 1000,
         correctOrientation: true,
         allowEdit: true,
         destinationType: this.camera.DestinationType.FILE_URI,
         sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
         mediaType: this.camera.MediaType.ALLMEDIA
       };
   ```
   
   Returns undefined with `FILE_URI`. Changing to DATA_URL works. Would prefer to use FILE_URI. 

----------------------------------------------------------------
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


[GitHub] [cordova-plugin-camera] tmk1991 commented on issue #573: Android 10 select video return path error

Posted by GitBox <gi...@apache.org>.
tmk1991 commented on issue #573: Android 10 select video return path error
URL: https://github.com/apache/cordova-plugin-camera/issues/573#issuecomment-607084439
 
 
   @ztj1993  - did you resolve?

----------------------------------------------------------------
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


[GitHub] [cordova-plugin-camera] ztj1993 commented on issue #573: Android 10 select video return path error

Posted by GitBox <gi...@apache.org>.
ztj1993 commented on issue #573: Android 10 select video return path error
URL: https://github.com/apache/cordova-plugin-camera/issues/573#issuecomment-607264568
 
 
   @tmk1991 No

----------------------------------------------------------------
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


[GitHub] [cordova-plugin-camera] tmk1991 commented on issue #573: Android 10 select video return path error

Posted by GitBox <gi...@apache.org>.
tmk1991 commented on issue #573: Android 10 select video return path error
URL: https://github.com/apache/cordova-plugin-camera/issues/573#issuecomment-609489941
 
 
   I've made changes to my fork for existing iOS and Android OS updates. 
   https://github.com/TDTECHLINK/cordova-plugin-camera
   
   Remove the plugin and then add back via git repo
   `cordova plugin add git+https://github.com/TDTECHLINK/cordova-plugin-camera.git`

----------------------------------------------------------------
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