diff options
author | Lars Sutterud <larssutterud@gmail.com> | 2023-02-10 17:19:27 +0100 |
---|---|---|
committer | Lars Sutterud <lars.sutterud@qt.io> | 2023-02-10 18:08:35 +0100 |
commit | 8d17f204d8aa06f03b5cc17764db28e959073c2a (patch) | |
tree | 11ec8924dbe7eb5b6d02d8c730609dfa59e163de | |
parent | 6681426b573125e8a4b0abac45acb10f79a7be65 (diff) |
Add Info.plist with NSCameraUsageDescription to qmlvideo example
Created Info.plist containing NSCameraUsageDescription. Without it
the example crashes when trying to use the camera on macOS.
Also included the new file in qmlvideo.pro.
Task-number: QTBUG-110015
Change-Id: I6ab57b690bc99fc0b63d5447f54f78d4b8351636
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r-- | examples/multimedia/video/qmlvideo/Info.plist | 26 | ||||
-rw-r--r-- | examples/multimedia/video/qmlvideo/qmlvideo.pro | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/examples/multimedia/video/qmlvideo/Info.plist b/examples/multimedia/video/qmlvideo/Info.plist new file mode 100644 index 000000000..92908df4b --- /dev/null +++ b/examples/multimedia/video/qmlvideo/Info.plist @@ -0,0 +1,26 @@ +<?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>CFBundleIconFile</key> + <string></string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleExecutable</key> + <string>qmlvideo</string> + <key>CFBundleIdentifier</key> + <string>io.qt.${PRODUCT_NAME:rfc1034identifier}</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>NSCameraUsageDescription</key> + <string>Qt Multimedia Example</string> +</dict> +</plist> diff --git a/examples/multimedia/video/qmlvideo/qmlvideo.pro b/examples/multimedia/video/qmlvideo/qmlvideo.pro index dbd3a42a1..4a73d6883 100644 --- a/examples/multimedia/video/qmlvideo/qmlvideo.pro +++ b/examples/multimedia/video/qmlvideo/qmlvideo.pro @@ -20,6 +20,8 @@ include($$SNIPPETS_PATH/performancemonitor/performancemonitordeclarative.pri) target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/video/qmlvideo INSTALLS += target +macos: QMAKE_INFO_PLIST = Info.plist + EXAMPLE_FILES += \ qmlvideo.png \ qmlvideo.svg |