Qt Multimedia 模块 C++ 类

The Qt Multimedia module provides audio, video and camera functionality. 更多...

名称空间

QAudio 包含用于音频类的枚举

QAudioBuffer 表示具有特定格式和采样率的一批音频样本
QAudioDecoder Implements decoding audio
QAudioDevice Information about audio devices and their functionality
QAudioFormat 存储音频流参数信息
QAudioInput Represents an input channel for audio
QAudioOutput Represents an output channel for audio
QAudioSink 把音频数据发送到音频输出设备的接口
QAudioSource 从音频输入设备接收音频数据的接口
QCamera 系统摄像头设备接口
QCameraDevice 有关摄像头设备的一般信息
QCameraFormat Describes a video format supported by a camera device
QImageCapture 用于录制媒体内容
QMediaCaptureSession Allows capturing of audio and video content
QMediaDevices Information about available multimedia input and output devices
QMediaFormat Describes an encoding format for a multimedia file or stream
QMediaMetaData Provides meta-data for media files
QMediaPlayer Allows the playing of a media files
QMediaRecorder Used for encoding and recording a capture session
QMediaTimeRange 表示一组零个或多个不相交的时间间隔
QMediaTimeRange::Interval QMediaTimeRange::Interval class represents a time interval with integer precision
QScreenCapture Used for capturing a screen
QSoundEffect 播放低延迟音效的办法
QVideoFrame 表示视频数据帧
QVideoFrameFormat 指定视频呈现表面的流格式
QVideoSink Represents a generic sink for video data

详细描述

使用模块

使用 Qt 模块要求直接或透过其它依赖链接到模块库。一些构建工具为此有贡献支持,包括 CMake and qmake .

构建采用 CMake

使用 find_package() 命令定位所需模块组件在 Qt6 包:

find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)