FrancescoPaiola commented on issue #261:
URL: 
https://github.com/apache/cordova-plugin-media-capture/issues/261#issuecomment-1610188701

   ### Why this problem?
   I'm using ionic 6 (capacitor 5) and i've faced this problem due to [Android 
13 permissions 
changes](https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions).
   
   ### What I've done?
   I've found e temporary solutions for those who needs only a working 
`captureVideo()` method as me.
   Check out the fork here:
   https://github.com/SocialCities/cordova-plugin-video-capture
   
   Basically I've added a version check method to support Android 13 (SDK >= 
33) permissions changes as you can see here:
   
https://github.com/apache/cordova-plugin-media-capture/compare/master...SocialCities:cordova-plugin-video-capture:master.
   In particular I've added `READ_MEDIA_VIDEO` permission requirement 
dynamically if SDK is >= 33).  
   To install this 
   
   ### How to install? 
   ```
   // uninstall cordova-plugin-media-capture
   npm uninstall cordova-plugin-media-capture
   // install my fork
   npm install https://github.com/SocialCities/cordova-plugin-video-capture.git
   
   // if it's not already done:
   npm install @awesome-cordova-plugins/media-capture 
   ionic cap sync
   ```
   
   ### Attention
   This solutions is incomplete. Plugin's methods other than `captureVideo()` 
should not works correctly, because i have an upcoming work deadline and I need 
only that method.
   If you need the other plugin's methods too, you need to extend my function 
and manage the other permissions requirements for version SDK >= 33 
(`READ_MEDIA_IMAGES` and `READ_MEDIA_AUDIO`) based on what needed.
   
   
   Hope this fork can be useful for those who need a temporary solution like me 
😺!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to