Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to choose video for Photo Library in iOS #752

Open
3 tasks done
abhishek0196 opened this issue Jul 21, 2021 · 5 comments
Open
3 tasks done

Not able to choose video for Photo Library in iOS #752

abhishek0196 opened this issue Jul 21, 2021 · 5 comments

Comments

@abhishek0196
Copy link

abhishek0196 commented Jul 21, 2021

Bug Report

Problem

In Version 5.0.2, I was not able to select video from the photo library.

What is expected to happen?

The video should be selected, and the getPicture method should return the path to the selected video.

What does actually happen?

The app crashes on selecting the video.

Command or Code

Git hub link to the sample code, this includes the platforms folder. link

Environment, Platform, Device

Version information

Ionic:

Ionic CLI : 6.10.2 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.11
@angular-devkit/build-angular : 12.0.5
@angular-devkit/schematics : 12.0.5
@angular/cli : 12.0.5
@ionic/angular-toolkit : 4.0.0

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)

Utility:

cordova-res (update available: 0.15.3) : 0.15.1
native-run (update available: 1.4.0) : 1.0.0

System:

Android SDK Tools : 26.1.1 (/Users/appdeveloper/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v12.16.3 (/usr/local/bin/node)
npm : 6.14.4
OS : macOS Catalina
Xcode : Xcode 12.4 Build version 12D4e

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@beckoninghook
Copy link

Hey, I had this issue when my phone was connected to xcode while running the app on a physical device, but it did always work on the simulator. I got it working on the physical device when I unplugged the cable and restart the app on my phone. I dont know what causes the issue though. Hope this helps I got everything working now with video uploading on IOS, so if you need some more help contact me.

@abhishek0196
Copy link
Author

First of all thanks for replying could you please clone the code and check in there ?

@al-matari
Copy link

Same problem

@joshtate
Copy link

I'm having a similar issue, except my app doesn't crash, it just returns null from the getPicture(options) promise. There is no error either.

@davidcopano
Copy link

The same thing happened to me. I used this fork and now it works correctly: #760

To use it while the pull request is not merged, use this command:

cordova plugin rm cordova-plugin-camera; cordova plugin add https://github.com/silvanadrian/cordova-plugin-camera.git#fix/video-quality-ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants