Qt Multimedia is an essential module that provides a rich set of QML types and C++ classes to handle multimedia content. It also provides necessary APIs to access the camera and radio functionality. The included Qt Audio Engine provides types for 3D positional audio playback and management.
The Qt Multimedia Widgets module provides widget based multimedia classes.
The QML types can be imported into your applciation using the following import statement in your
import QtMultimedia 5.5
If you intend to use the C++ classes in your application, include the C++ definitions using the following directive:
Note: If you are using a few classes from this module, we recommend including those specific classes only instead of the module.
To link against the corresponding C++ libraries, add the following to your
qmake project file:
QT += multimedia
QML Types and C++ Classes
The following is a list of important QML types and C++ classes provided by this module:
|Audio||Add audio playback functionality to a scene|
|Camera||Access camera viewfinder frames|
|MediaPlayer||Add media playback functionality to a scene. It is same as Audio type, but can be used for video playback with the VideoOutput type.|
|Radio||Access radio functionality|
|Video||Add Video playback functionality to a scene. It uses MediaPlayer and VideoOutput types to provide video playback functionality.|
|QAudioOutput||Sends audio data to an audio output device|
|QAudioRecorder||Record media content from an audio source.|
|QCamera||Access camera viewfinder.|
|QCameraImageCapture||Capture still images with a camera.|
|QMediaRecorder||Record media content from a camera or radio tuner source.|
|QMediaPlayer||Playback media from a source.|
|QRadioTuner||Access radio device.|
|QAbstractVideoSurface||Base class for video presentation.|
- Multimedia - overview of multimedia support in Qt
- Audio Overview
- Video Overview
- Camera Overview
- Radio Overview
The Qt Multimedia Backends wiki provides a summary of features supported by each platform plugin made available by this module. The following topics provide more platform-specific information.
- Qt Audio Engine
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.