QML 类型的 Qt Multimedia 支持以下基本使用案例:
可以将 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 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 |