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