self.video_widget = QtMultimediaWidgets.QVideoWidget()
self.player = QtMultimedia.QMediaPlayer()
self.player.setVideoOutput(self.video_widget)
self.player.setSource(QtCore.QUrl.fromLocalFile(video_path)) # 选取视频文件
self.player.play() # 播放视频
此控件播放视频很方便,但setPosition很慢,即拖动不流畅
标签:self,QMediaPlayer,player,video,很慢,setPosition From: https://www.cnblogs.com/kk0716/p/16693278.html