diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2024-01-04 21:21:58 +0200 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2024-01-04 21:21:58 +0200 |
commit | 374d71e29a142bd177cd5b1b7e29a4628085ddcb (patch) | |
tree | 2d0835a2f06d74ff5d750667c4c84bf88f537afb /examples/multimedia | |
parent | 5197ff9e91cabd90700cf0d36fb5e9e5793d7097 (diff) | |
parent | 8d17f204d8aa06f03b5cc17764db28e959073c2a (diff) |
Merge remote-tracking branch 'origin/tqtc/lts-5.15.13' into tqtc/lts-5.15-opensourcev5.15.13-lts-lgpl5.15
Change-Id: I3b153fa928169f990cd278566dda2f7c7706a015
Diffstat (limited to 'examples/multimedia')
4 files changed, 30 insertions, 2 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/qml/qmlvideo/VideoItem.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml index 8372acb7e..6614863ec 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml @@ -71,7 +71,7 @@ VideoOutput { MediaPlayer { id: mediaPlayer autoLoad: false - loops: Audio.Infinite + loops: MediaPlayer.Infinite onError: { if (MediaPlayer.NoError != error) { 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 diff --git a/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/ContentVideo.qml b/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/ContentVideo.qml index ade7012b1..7b3bba2b3 100644 --- a/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/ContentVideo.qml +++ b/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/ContentVideo.qml @@ -61,7 +61,7 @@ VideoOutput { id: mediaPlayer autoPlay: true volume: 0.5 - loops: Audio.Infinite + loops: MediaPlayer.Infinite } function play() { mediaPlayer.play() } |