jibon57 / nativescript-mediafilepicker

A complete file picker solution for NativeScript
Apache License 2.0
51 stars 39 forks source link

Unable to set video quality to AVCaptureSessionPresetMedium on iOS #119

Open mreall opened 4 years ago

mreall commented 4 years ago

I'm calling openVideoPicker with the following options. But no matter what I put in allowedVideoQualities, I get high-resolution videos on iOS.

      if (application.ios) {
        allowedVideoQualities = [
          AVCaptureSessionPresetMedium,
          AVCaptureSessionPresetLow,
        ];
      }
      const options = {
        android: {
          isCaptureMood: true,
          isNeedCamera: true,
          maxNumberFiles: maxNewItems,
          maxDuration: this.maxRecordSeconds,
          videoQuality: 0,
        },
        ios: {
          isCaptureMood: true,
          maxNumberFiles: maxNewItems,
          videoMaximumDuration: this.maxRecordSeconds,
          allowedVideoQualities: allowedVideoQualities,
        },
      };

Any suggestions to record in low-res? Thanks.