Qt Multimedia C++ 类

C++ 类为多媒体内容提供了更多控制,相比 QML 替代。若应用程序服务于复杂用例,譬如解码媒体文件、访问视频或音频缓冲,请使用 C++ 替代。有关 C++ 类支持的复杂音频、视频及摄像头用例的更多细节,参考 Multimedia 概述 .

名称空间

QAudio 包含用于音频类的枚举

Qt Multimedia 模块

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 Multimedia Widgets 模块

QGraphicsVideoItem Graphics item which display video produced by a QMediaPlayer or QCamera
QVideoWidget 呈现媒体对象产生视频的小部件

Qt Spatial Audio Module

QAmbientSound A stereo overlay sound
QAudioEngine Manages a three dimensional sound field
QAudioListener Defines the position and orientation of the person listening to a sound field defined by QAudioEngine
QAudioRoom
QSpatialSound A sound object in 3D space