RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
47 stars 8 forks source link

Support Android Permission Check #196

Closed ModischFabrications closed 8 months ago

ModischFabrications commented 2 years ago

Is your feature request related to a problem? Please describe. I would like to keep my project cross-platform compatible as much as possible while keeping modules like screen recording loosely coupled. It makes CaptureBase.HasUserAuthorisationToCaptureAudio comfortable to use during startup, but there is no solution for storage.

Describe the solution you'd like CaptureBase.HasUserAuthorisationToAccessPhotos should check for permissions on Android as well, similar to the behaviour of CaptureBase.HasUserAuthorisationToCaptureAudio

Describe alternatives you've considered Manual application checks with if (Application.platform == RuntimePlatform.Android)

Additional context Android 12, Pixel 6

MorrisRH commented 8 months ago

Permission check API now supported on android as well as (i|mac)OS

Chris-RH commented 8 months ago

Added to AVPro Movie Capture 5.2.2