Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(ios): video quality #760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

silvanadrian
Copy link

@silvanadrian silvanadrian commented Aug 31, 2021

Platforms affected

ios

Motivation and Context

I use the cordova-camera-plugin to upload videos to youtube at which time I realized that literally every upload ends up on being sd only even though most smartphones these days are able to record much higher resolution videos.
Before the change:
Screenshot 2021-08-31 at 22 32 02

After the change:
Screenshot 2021-08-31 at 22 21 53

(compression gets skipped, just shows up very shortly)

Closes #732

Description

At the moment it's more of a quickfix than a proper solution, I guess I can even improve it further by adding a video quality option to the CameraOptions then everyone can choose themselfs if they would want to be able to get higher resolution videos.

Does anyone have an opinion on that?

For reference: https://stackoverflow.com/questions/20190485/how-to-avoid-compression-after-selecting-video-from-uiimagepickercontroller-in-i

Testing

As described tested it by uploading the same video 2 times to youtube from a iPhone to make sure that a higher resolution video got uploaded which was the case.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@davidcopano
Copy link

davidcopano commented Oct 25, 2021

Thanks to this fork, I was able to choose videos from iOS devices correctly, with the original plugin the app would close almost immediately. This pull request should be merged as soon as possible.

To future readers, you can install this useful fork executing this command:

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

@Siedlerchr
Copy link

This fix works only for selecting existing videos from the photo library, not for taking new videos.

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

Successfully merging this pull request may close these issues.

iOS : remove video compression on select from library
3 participants