-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS Mojave and Catalina TCC trigger #51
Comments
I have a Developer ID myself and could perform some more tests. |
@pnerum does the workaround described in #30 work for you? In order to fix this in the library itself (without requiring the entire Processing app to ask for permissions on startup which it might not end up using) we'd need to ask for the permission programmatically near the code block below, where there's currently only an
|
Hi Kevin, As you can see in the logstream output:
|
Oh great! Could you do me a favour and install Minim (an alternative sound library) from within Processing and see if it behaves in the same way when you run its audio-in example? If the behaviour is the same and the extra permission entry doesn't interfere with Processing startup until a sketch actually attempts to access the microphone then @benfry I think this should be fixed at the level of the Processing app itself? I don't know how exactly the whole .App bundling thing works but maybe the permissions need to be added here? https://github.com/processing/processing/blob/349f413a3fb63a75e0b096097a5b0ba7f5565198/java/application/Info.plist.tmpl |
Just tested it and Minim does indeed behaves exactly the same as the audioin example. |
Pay attention as the text string of my example should say something more logical. I copied those strings from Skype.app, just for testing purposes.
|
I’ve added the examples: https://gist.github.com/pnerum/75a7e56edf545cb3114d5794a53b8699.js |
@kevinstadler No problem! If this gets solved our students and staff will be very happy! |
@kevinstadler and @benfry isn’t this issue in the wrong project? |
Hi @kevinstadler the issue isn’t solved until someone from the developers need to edit the Info.plist and redistribute this updated app version as a new release. |
@benfry Can you please update the Info.plist so TCC triggers are activated when using audio or video and sign the updated application? This needs to be added to Info.plist:
|
I really hope this gets solved quickly, as our students can't work with camera and microphone until this is solved! |
Just the same problem over here. I used to work with Processing (camera and mic) for my colleges at UCLL, but this isn't going well anymore. |
Hope this is fixed soon. Has this also been been added to the known issues list for Processing 4? |
@dvlahos not yet as far as I know, could you please add a ticket there to raise awareness |
Is there a Info.plist file that I could use to be able to use camera and microphone on macOS Catalina? Or do we need to wait for a release? |
@jmiguelff You can add it yourself, see: #51 (comment). After you’ve added it you need to sign the app with your own Apple developer ID if you have one. |
I found a workaround until a release for anyone like myself who isn't able to update/sign the .plist. Open the Processing 3 app through Terminal by typing: Then open a sketch that requires use of the mic/camera in the Processing PDE (this doesn't work if you're using Sublime etc as an editor). Then you will get the pop-up that asks if you want to allow Processing to access the mic/camera. Once you've done it once, the privacy setting seems to stay 'allowed' and you don't need to open Processing through the Terminal again. You can check by looking at your 'security & privacy' settings under 'system preferences'. Hope that helps others until the fix is sorted. |
THX but it seems only work for sounds ... not for camera ... |
Hey @RomainAl - I'm so not an expert here. But happy to share with you the sketch I used that triggered the video pop-up for me. Its code from a project with Joshua Davis. Email in bio. |
My step-by-step workaround for camera and microphone (requires that you are a member of the Apple Developer program) here: |
@benfry is it possible tu update with the i3games (#51 (comment)) fix? it's been a while since i was forced to use openFrameworks on macos, and i would preferably return to processing ;) |
Hi folks. I seem to have at some point gotten my version of Processing to ask for mic access, but I generally use vscode and the processing-java command-line to launch projects. Unfortunately, whatever's going on under the hood there (looks like an enormous java call when I do a ps -eaf command) doesn't trigger the TCC. I'm guessing I now need to give "java" permission? Any guesses or thoughts on how to trick raw "java" into asking for mic permissions, so I can run Processing sketches from vscode and get on with my projects? |
Hi all, sorry that this has been broken for so long. The video and sound libraries were moved out of the core because 1) they were very large, and 2) so that others could maintain them. Unfortunately there's nobody doing that maintenance at the moment, so once again it falls to me. We're all volunteers, making this available for free, and have very limited time (none, in the midst of a pandemic) to work on it. I've made the necessary changes so that the prompt will show up on in the next 4.0 release (alpha 3), or you can build that code and run it yourself from that repo: https://github.com/processing/processing4 |
Description
When launching Processing.app and a user wants to use audio input for example, the app doesn’t aks for permission to use the microphone
Expected Behavior
Trigger a window asking the user for the processing.app to access the microphone
Current Behavior
No tcc triggers, so there are no audio or video inputs available
Steps to Reproduce
Your Environment
Possible Causes / Solutions
Use the Apple provided API call to add some tags in the Info.plist file.
https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos
The text was updated successfully, but these errors were encountered: