UnityPlugin-AVProMovieCapture icon indicating copy to clipboard operation
UnityPlugin-AVProMovieCapture copied to clipboard

[iOS] Limited PhotoLibrary access permission not handled

Open cihadturhan opened this issue 2 months ago • 6 comments

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.

  1. 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)
  1. 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


cihadturhan avatar Oct 11 '25 22:10 cihadturhan

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

cihadturhan avatar Oct 11 '25 22:10 cihadturhan

@Chris-RH sorry for uploading with the RenderHeads folder. Should I upload it without the plugin or email it to you?

cihadturhan avatar Oct 13 '25 14:10 cihadturhan

@Chris-RH any updates?

cihadturhan avatar Oct 15 '25 23:10 cihadturhan

A fix for these issues will make it into the next release - version 5.3.5.

MorrisRH avatar Oct 20 '25 16:10 MorrisRH

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.

cihadturhan avatar Oct 21 '25 00:10 cihadturhan

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

Image

Still no ETA?

cihadturhan avatar Oct 23 '25 11:10 cihadturhan