79325982

Date: 2025-01-03 09:15:43
Score: 1
Natty:
Report link

after some searching, i found that after using:

self.player.mediaStatusChanged.connect(self.check_video_status)

and

    def check_video_status(self, status):
    # Check if the media status indicates the video has finished
    if status == QMediaPlayer.MediaStatus.EndOfMedia:
        self.video.close()  # Close the app when the video is over

the program is able to send a signal when the video over, then close the app

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gavin Alvaro