Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230143

Camera Plugin Video FILE_URI issue from External SD Card

$
0
0

I was trying to upload videos from my phone to the server. After a while when i tried uploading video which were in my SD card then it failed. After some research i came to know when i was selecting video from sd card i got the response as null. I did not found solution else where. Can someone help? Following is my code

    const options: CameraOptions = {
      quality: 80,
      sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
      mediaType: this.camera.MediaType.VIDEO,
      destinationType: this.camera.DestinationType.FILE_URI
    };

    this.camera.getPicture(options).then((videoUrl) => {
      console.log('Vid Url', videoUrl);  // This returns null when selecting from SD Card
    });

Viewing all articles
Browse latest Browse all 230143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>