Qt Multimedia QML Types

The QML types for Qt Multimedia support the basic use cases such as:

  • audio and video playback,
  • access camera functionality,
  • record video,
  • and access camera settings.

QML Types

Qt Multimedia QML types can be imported into your application using the following import statement in your .qml file:

import QtMultimedia

AudioInput

An audio input to be used for capturing audio in a capture session

AudioOutput

An audio output to be used for playback or monitoring of a capture session

Camera

An interface for camera settings related to focus and zoom

CaptureSession

Allows capturing of audio and video content

ImageCapture

An interface for capturing camera images

MediaDevices

Information about available multimedia input and output devices

MediaPlayer

Adds media playback to a scene

MediaRecorder

For encoding and recording media generated in a CaptureSession

ScreenCapture

This type is used for capturing a screen

SoundEffect

Type provides a way to play sound effects in QML

Video

A convenience type for showing a specified video

VideoOutput

Render video or camera viewfinder

WindowCapture

This type is used for capturing a window

The QtMultimedia import provides also the following value types:

CapturableWindow

Type is used getting basic of a window that is available for capturing via WindowCapture

audioDevice

Describes an audio device

cameraDevice

Describes a camera device

cameraFormat

Describes a video format supported by a camera device

mediaFormat

MediaFormat describes the format of a media file

mediaMetaData

Provides meta-data for media files

Qt Spatial Audio Module

Qt Spatial Audio QML types can be imported into your application using the following import statement in your .qml file:

import QtQuick3D.SpatialAudio

AmbientSound

A stereo overlay sound

AudioEngine

Manages sound objects inside a 3D scene

AudioListener

Defines the position and orientation of the person listening to a sound field defined by a AudioEngine

AudioRoom

SpatialSound

A sound object in 3D space

© 2024 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.