> Am 25.10.2019 um 06:49 schrieb William Koperwhats <wkoperwh...@miloslick.com>:
> 
> I can’t seem to get *any* of the AVFoundation example projects that interface 
> with camera or video capture hardware to run in Catalina on a MacBook Pro, 
> nor in High Sierra on a MacBook Air. 

You get a crash dialog telling you the missing permissions.

Please make an info.plist file with a text editor and this content:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
  <key>NSCameraUsageDescription</key>
  <string>Demo</string>
</dict>
</plist>


Drop that file into the project, so it's included in compilation.
Then permissions dialog should show.


And we have newer functions for authorization. see 
authorizationStatusForMediaType and requestAccessForMediaType in 
AVCaptureDeviceMBS  class.


Finally you may need to code sign the app before giving it to someone else.

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to