Saqib92 opened a new issue, #300:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/300

   # Bug Report
   
   ## Problem
   `captureVideo()` crash app on android 14. 
   
   ### What is expected to happen?
   it should record video. 
   
   ### What does actually happen?
   App Crash
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   ```
   recordVid(limit: number = 1): Promise<any> {
       let options: CaptureVideoOptions = { limit: limit, quality: 80 };
       return new Promise(resolve => {
         this.mediaCapture.captureVideo(options).then((data: any) => {
           resolve(data);
         },
           (err: CaptureError) => {
             console.error(err)
           })
       }); //promise
     }
   ```
   
   
   ### Environment, Platform, Device
   Ionic + Capacitor 6
   Android 14
   
   ### 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.
   -->
   Plugins info:
   ```
   "cordova-plugin-file": "^8.1.0",
   "cordova-plugin-file-transfer": "^2.0.0",
   "cordova-plugin-media-capture": "^5.0.0"
   ```
   Capacitor: `"@capacitor/core": "^6.0.0"`
   Ionic: `"@ionic/angular": "^7.5.0"`
   Angular: `"@angular/core": "^18.2.0",`
   
   AndroidManifest.xml:
   
   ```
   <uses-permission android:name="android.permission.INTERNET" />
   <!-- Geolocation API -->
   <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
   <uses-feature android:name="android.hardware.location.gps" />
   
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
   <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" 
android:maxSdkVersion="32"/>
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" 
android:maxSdkVersion="32"/>
   ```
   
   ## 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.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to