Qt Multimedia 实例

模块为基于 Qt 的应用程序提供跨平台多媒体功能。 Qt Multimedia模块为基于 Qt 的应用程序提供了跨平台多媒体功能。

下面列出的示例展示了不同领域的一些典型用例,包括低级音频示例、高级音频和视频播放,以及使用 C++ 和 QML 捕捉和录制视听内容。

Audio Devices Example

测试可用的音频设备及其配置。

Audio Output Example

使用 QAudioSink 类启用音频播放。

Audio Recorder Example

发现可用设备和支持的编解码器。

Audio Source Example

使用 QAudioSource 类录制音频。

Camera Example

演示如何捕捉静态图像或录制视频。

Media Player

使用 QAudioSource 类播放音频和视频Qt Quick

Media Player Example

使用Qt Widgets 播放音频和视频。

QML Camera Application

这个基于Qt Quick 的应用程序展示了如何使用 API 捕捉静态图像或视频。

QML Media Player Example

使用 QML MediaPlayer 类型播放音频和视频。

QML Video Example

转换视频和相机取景器内容。

QML Video Recorder

使用Qt Quick 录制音频和视频。

Qt Spatial Audio Examples

演示 Qt 提供的空间音频功能

Screen Capture Example

捕捉屏幕或窗口

Video Graphics Item Example

在图形场景中串流视频。

Video Widget Example

实现视频播放器部件。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.