使用 Qt Quick 播放音频和视频。
QML Media Player 演示可以使用各种编解码器播放音频和或视频文件的简单多媒体播放器。
要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 。更多信息,拜访 构建和运行范例 .
The example uses the QML MediaPlayer object connected to a VideoOutput to play back the video.
The example shows usage of some advanced features such as selection of audio or subtitle tracks.