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
9
This page covers the availability of Qt Multimedia features on iOS and macOS.
10
11
\section1 Limitations
12
13
Since Qt Multimedia for iOS uses the camera and microphone, the \c Info.plist
14
assigned to QMAKE_INFO_PLIST in the project file must contain the keys
15
\c NSCameraUsageDescription and \c NSMicrophoneUsageDescription. Otherwise, the
16
application will abort on startup. See \l{Info.plist} documentation from Apple
17
for more information regarding this key.
18
19
\section1 Use of FFmpeg libraries on iOS
20
21
FFmpeg binaries from the online installer must be embedded into the application's
22
bundle. To embed these libraries, you can add the \l{qt6_add_ios_ffmpeg_libraries}{qt6_add_ios_ffmpeg_libraries()}
23
command 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
31
When using QMake, add the following to your \c{.pro} file:
32
33
\code
34
CONFIG += add_ios_ffmpeg_libraries
35
\endcode
36
37
\note The FFmpeg binaries from the online installer are built for arm64 and x86_64-simulator to ensure they
38
pass validation with Apple Store Connect and can be used when running the iOS simulator.
39
40
\note A limitation in Qt Multimedia builds that include FFmpeg support,
41
is that FFmpeg libraries must be provided at link-time when building
42
iOS applications. Failing to do so will result in linker errors. This
43
includes the Qt Multimedia builds supplied by Qt Maintenance Tool.
44
Applications that use such builds are required to call
45
\l{qt_add_ios_ffmpeg_libraries}, or otherwise link their own FFmpeg
46
libraries. As a consequence, application developers that wish to
47
deploy iOS applications without FFmpeg, must build their own build
48
of Qt Multimedia without FFmpeg support.
49
50
*/
qtmultimedia
src
multimedia
doc
src
platform-notes-apple.qdoc
Generated on
for Qt by
1.14.0