Qt Multimedia QML 類型

QML 類型的 Qt Multimedia 支持以下基本使用案例:

  • 音頻和視頻迴放,
  • access camera functionality,
  • 錄製視頻,
  • 和訪問攝像頭設置。

QML 類型

可以將 Qt Multimedia QML 類型導入應用程序,使用以下 import 語句在 .qml 文件中:

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 捕獲攝像頭圖像的接口
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 Type is used for capturing a screen
SoundEffect 提供在 QML 中播放音效方式的類型
Video 展示指定視頻的方便類型
VideoOutput 渲染視頻或攝像頭取景器
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