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
7\page multimediaoverview.html
8\title Multimedia Overview
9\brief A set of APIs for working with audio, video and camera devices.
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.
18Here are some things you can do with the Qt Multimedia APIs:
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.
30\section1 Multimedia Components
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}.
37\li \l {Audio Overview}
38\li \l {Video Overview}
39\li \l {Camera Overview}
40\li \l {Spatial Audio Overview} (Technology Preview)
43\section1 Multimedia Recipes
45For some quick recipes, see this table:
54 \li Playing a sound effect
60 \li \l{Spatial Audio Panning Example}{audiopanning}
61 \li SpatialSound, AudioEngine
62 \li QSpatialSound, QAudioEngine
64 \li Playing encoded audio (MP3, AAC etc)
65 \li \l{Media Player Example}{player}
69 \li Playing raw audio data with low latency
70 \li \l{Audio Output Example}{audiooutput},
74 \li Accessing raw audio input data
75 \li \l{Spectrum Example}{spectrum},
76 \l{Audio Source Example}{audiosource}
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
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
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
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
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
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
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.
122\section1 Changes from Previous Versions
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.
128\section1 Reference Documentation
131 \li \l{Qt Multimedia C++ Classes}{C++ Classes}
132 \li \l{Qt Multimedia QML Types}{QML Types}