在上章我们学习了MediaPlayer类型.本章便来学习下超级简单的视频播放器
如下图所示:
效果图如下所示(GIF录制渐变不清晰):
已上传到Qml / Qt / C++技术交流779866667中,需要的入群获取:
由于要渲染视频画面,所以我们需要学习一下VideoOutput
1.VideoOutput介绍
VideoOutput用来渲染视频或者相机取景的区域,可以通过该source属性设置视频源是MediaPlayer(多媒体)、还是Camera(摄像头)、
它的属性如下所示:
- autoOrientation : bool,