[iOS] Limited PhotoLibrary access permission not handled
Unity version
6000.0.58f2
Unity editor platform
macOS
AVPro Movie Capture edition
Full
AVPro Movie Capture Version
5.3.4
Xcode version being used to build your Unity project.
26.0.2
Which iOS version(s) are you using?
15.8 – 18.6
Hardware
iphone 8 - 14 pro
Which capture component are you using?
Capture From Camera
Capture mode
Offline
Which output mode are you using?
Video file
Video codecs
H264
Audio source
Unity
Audio codecs
AAC
Any other component configuration
No response
The issue
Hello, I have realized two issues with iOS permissions and one of them is seriously breaking recording, making it impossible to use again.
- I would assume it should not ask for "All Photos" (Photo Library Usage) permission with the following setup. It should just ask for "Add Photos Only" permission. I ask permission before recording starts similar to your script, but recorder asks another permission when recording ends.
- Folder:
Photo Library - Subfolder(s): `` (Empty String)
- On iOS, there are third option for photo library usage permission: "Selected Photos". When recording ends and user selects "Select Photos" option, it would be impossible to record video again in the same session. I think AVProMovieCapture never considers the third option which prevents users to record video multiple times in a run.
I'm preparing a repro and a video, so you can easily fix this. I'd appreciate a lot if you could quickly fix it.
Thanks!
Log output
Issue (1) repro:
- Hit "Start Recording"
- See "Add to your photos" permission and accept
- Wait a few seconds to record
- Hit "Stop Recording"
- See it asks "Access Your Photos" permission even the output folder is empty string
https://github.com/user-attachments/assets/ac12ea1f-3b61-4d40-9d36-b38a3113292d
Issue (2) repro:
- Follow the steps above
- Choose "Select Solders"
- You won't record again until you restart the game
https://github.com/user-attachments/assets/c7872474-1955-42a8-b676-6d2d70064f30
Minimal Repro
It's in 6000.0.58f2 but I think it's unity version independent issue. REDACTED - PLEASE DO NOT POST PROJECTS WITH NON-TRIAL VERSION ON GITHUB
@Chris-RH sorry for uploading with the RenderHeads folder. Should I upload it without the plugin or email it to you?
@Chris-RH any updates?
A fix for these issues will make it into the next release - version 5.3.5.
A fix for these issues will make it into the next release - version 5.3.5.
Thank you! I will try it as soon as possible.
A fix for these issues will make it into the next release - version 5.3.5.
Oh I thought it was released already. I see 5.3.4
Still no ETA?