Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
multimedia-overview.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
5
6/*!
7\page multimediaoverview.html
8\title Multimedia Overview
9\brief A set of APIs for working with audio, video and camera devices.
10
11Multimedia support in Qt is provided by the \l{Qt Multimedia} module. The Qt
12Multimedia module provides a rich feature set that enables you to easily take
13advantage of a platform's multimedia capabilities, such as media playback and
14the use of camera devices.
15
16\section1 Features
17
18Here are some things you can do with the Qt Multimedia APIs:
19
20\list
21\li Access raw audio devices for input and output.
22\li Play low latency sound effects.
23\li Play 3D spatial audio.
24\li Play media files in playlists (such as compressed audio or video files).
25\li Record audio and compress it.
26\li Use a camera, including viewfinder, image capture, and movie recording
27\li Decode audio media files into memory for processing.
28\endlist
29
30\section1 Multimedia Components
31
32The Qt Multimedia APIs are categorized into three main components. More
33information specific to each component is available in the overview pages. You
34can also take a look at some \l{Multimedia Recipes}{recipes}.
35
36\list
37\li \l {Audio Overview}
38\li \l {Video Overview}
39\li \l {Camera Overview}
40\li \l {Spatial Audio Overview} (Technology Preview)
41\endlist
42
43\section1 Multimedia Recipes
44
45For some quick recipes, see this table:
46
47\table 70%
48 \header
49 \li Use case
50 \li Examples
51 \li QML Types
52 \li C++ Classes
53 \row
54 \li Playing a sound effect
55 \li
56 \li \l{SoundEffect}
57 \li QSoundEffect
58 \row
59 \li Playing 3D sound
60 \li \l{Spatial Audio Panning Example}{audiopanning}
61 \li SpatialSound, AudioEngine
62 \li QSpatialSound, QAudioEngine
63 \row
64 \li Playing encoded audio (MP3, AAC etc)
65 \li \l{Media Player Example}{player}
66 \li \l{MediaPlayer}
67 \li QMediaPlayer
68 \row
69 \li Playing raw audio data with low latency
70 \li \l{Audio Output Example}{audiooutput},
71 \li
72 \li QAudioSink
73 \row
74 \li Accessing raw audio input data
75 \li \l{Spectrum Example}{spectrum},
76 \l{Audio Source Example}{audiosource}
77 \li
78 \li QAudioSource
79 \row
80 \li Recording encoded audio data
81 \li \l{Audio Recorder Example}{audiorecorder}
82 \li \l{CaptureSession}, \l{AudioInput}, \l{MediaRecorder}
83 \li QMediaCaptureSession, QAudioInput, QMediaRecorder
84 \row
85 \li Discovering audio and video devices
86 \li \l{Audio Devices Example}{audiodevices}
87 \li \l{MediaDevices}, \l{audioDevice}, \l{cameraDevice}
88 \li QMediaDevices, QAudioDevice, QCameraDevice
89 \row
90 \li Video Playback
91 \li \l{Media Player Example}{player},
92 \l{QML Media Player Example}{mediaplayer}
93 \li \l MediaPlayer, \l VideoOutput, \l Video
94 \li QMediaPlayer, QVideoWidget, QGraphicsVideoItem
95 \row
96 \li Capturing audio and video
97 \li \l {Camera Example}{camera},
98 \li \l {QML Video Recorder}{recorder}
99 \li \l CaptureSession, \l Camera, \l AudioInput \l VideoOutput
100 \li QMediaCaptureSession, QCamera, QAudioInput, QVideoWidget
101 \row
102 \li Capturing photos
103 \li \l {Camera Example}{camera},
104 \li \l {QML Video Recorder}{recorder}
105 \li \l CaptureSession, \l Camera, \l ImageCapture
106 \li QMediaCaptureSession, QCamera, QImageCapture
107 \row
108 \li Capturing movies
109 \li \l {Camera Example}{camera},
110 \li \l {QML Video Recorder}{recorder}
111 \li \l CaptureSession, \l Camera, \l MediaRecorder
112 \li QMediaCaptureSession, QCamera, QMediaRecorder
113\endtable
114
115\section1 Limitations
116
117The Qt Multimedia APIs build upon the multimedia framework of the underlying
118platform. This can mean that support for various codecs, or containers will vary
119between machines. This support depends on what the end user has installed.
120See \l{Supported Media Formats} for more detail.
121
122\section1 Changes from Previous Versions
123
124If you previously used Qt Multimedia in Qt 5, see
125\l{Changes to Qt Multimedia} for more information on what has changed, and what
126you might need to change when porting code to Qt 6.
127
128\section1 Reference Documentation
129
130\list
131 \li \l{Qt Multimedia C++ Classes}{C++ Classes}
132 \li \l{Qt Multimedia QML Types}{QML Types}
133\endlist
134*/