Added mkv to the playable Videos

dev
Peery 3 years ago
parent e45106cd2c
commit 95fb1dbd0e

@ -542,7 +542,7 @@ class Window(QtWidgets.QMainWindow):
self.ui.image_label.setMovie(self.__pixmap)
self.__pixmap.start()
self.__pixmap.frameChanged.connect(self.on_movie_frame_changed)
elif file_ending in ["webm", "mp4", "mov"]:
elif file_ending in ["webm", "mp4", "mov", "mkv"]:
self.__showing_video = True
self.__video = QVideoWidget() if self.__video is None else self.__video
self.__player = QtMultimedia.QMediaPlayer(None, QtMultimedia.QMediaPlayer.VideoSurface)

Loading…
Cancel
Save