|
|
@ -544,7 +544,10 @@ class Window(QtWidgets.QMainWindow):
|
|
|
|
self.__pixmap.frameChanged.connect(self.on_movie_frame_changed)
|
|
|
|
self.__pixmap.frameChanged.connect(self.on_movie_frame_changed)
|
|
|
|
elif file_ending in ["webm", "mp4", "mov", "mkv"]:
|
|
|
|
elif file_ending in ["webm", "mp4", "mov", "mkv"]:
|
|
|
|
self.__showing_video = True
|
|
|
|
self.__showing_video = True
|
|
|
|
self.__video = QVideoWidget() if self.__video is None else self.__video
|
|
|
|
if isinstance(self.__video, QVideoWidget):
|
|
|
|
|
|
|
|
self.__video.show()
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.__video = QVideoWidget() if self.__video is None else self.__video
|
|
|
|
self.__player = QtMultimedia.QMediaPlayer(None, QtMultimedia.QMediaPlayer.VideoSurface)
|
|
|
|
self.__player = QtMultimedia.QMediaPlayer(None, QtMultimedia.QMediaPlayer.VideoSurface)
|
|
|
|
self.__player.setVideoOutput(self.__video)
|
|
|
|
self.__player.setVideoOutput(self.__video)
|
|
|
|
self.__player.setMedia(QtMultimedia.QMediaContent(QUrl.fromLocalFile(full_path)))
|
|
|
|
self.__player.setMedia(QtMultimedia.QMediaContent(QUrl.fromLocalFile(full_path)))
|
|
|
|