Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
platform-notes-apple.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qtmultimedia-apple.html
6\title Qt Multimedia on macOS and iOS
7\brief Platform notes for iOS
8
9This page covers the availability of Qt Multimedia features on iOS and macOS.
10
11\section1 Limitations
12
13Since Qt Multimedia for iOS uses the camera and microphone, the \c Info.plist
14assigned to QMAKE_INFO_PLIST in the project file must contain the keys
15\c NSCameraUsageDescription and \c NSMicrophoneUsageDescription. Otherwise, the
16application will abort on startup. See \l{Info.plist} documentation from Apple
17for more information regarding this key.
18
19\section1 Use of FFmpeg libraries on iOS
20
21FFmpeg binaries from the online installer must be embedded into the application's
22bundle. To embed these libraries, you can add the \l{qt6_add_ios_ffmpeg_libraries}{qt6_add_ios_ffmpeg_libraries()}
23command to the app's CMakeLists.txt file:
24
25\code
26 qt_add_ios_ffmpeg_libraries(mytarget)
27\endcode
28
29\sa {qt6_add_ios_ffmpeg_libraries}{qt_add_ios_ffmpeg_libraries()}
30
31When using QMake, add the following to your \c{.pro} file:
32
33\code
34CONFIG += add_ios_ffmpeg_libraries
35\endcode
36
37\note The FFmpeg binaries from the online installer are built for arm64 and arm64-simulator to ensure they
38pass validation with Apple Store Connect and can be used when running the iOS simulator.
39
40*/