This commit is contained in:
Page Asgardius 2024-08-17 15:19:47 -07:00
parent 939035a5c7
commit 1b58342375

View file

@ -32,7 +32,7 @@ class VideoPlayer(QMainWindow):
self.slider.sliderMoved.connect(self.set_position) self.slider.sliderMoved.connect(self.set_position)
self.media_player.setVideoOutput(self.video_widget) self.media_player.setVideoOutput(self.video_widget)
self.media_player.setSource(QUrl("https://video.asgardius.company/static/streaming-playlists/hls/41bf7df4-8f6c-45e9-96ef-a8dd57c865c8/4cd1430a-0124-473f-98ce-2f65a9bafad9-480.m3u8")) self.media_player.setSource(QUrl("https://video.asgardius.company/download/videos/41bf7df4-8f6c-45e9-96ef-a8dd57c865c8-480.mp4"))
self.media_player.positionChanged.connect(self.position_changed) self.media_player.positionChanged.connect(self.position_changed)
self.media_player.durationChanged.connect(self.duration_changed) self.media_player.durationChanged.connect(self.duration_changed)
self.audio_output = QAudioOutput() self.audio_output = QAudioOutput()