Commit cef7b3e
committed
Fix camera sources showing no video (declare camera usage in Info.plist)
macOS refuses camera access unless the app bundle's Info.plist declares
NSCameraUsageDescription, so QCamera never started and camera sources showed
no video (Syphon and video files were unaffected). The project already had a
proper custom Info.plist (com.artpluscode.MapMap identity, version 0.6.3) but
it was never wired into the build, so qmake generated a default plist without
any usage description.
Wire the custom Info.plist via QMAKE_INFO_PLIST and add NSCameraUsageDescription
(+ NSMicrophoneUsageDescription). macOS now prompts for camera permission on
first use; once granted, camera sources display video. This also gives the
bundle its real identifier and version.1 parent 665c748 commit cef7b3e
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments