diff options
Diffstat (limited to 'examples')
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() } |