Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QMediaPlayer - Stopping on last frame
Qt 6.11 is out! See what's new in the release blog

QMediaPlayer - Stopping on last frame

Scheduled Pinned Locked Moved Unsolved Qt for Python
pysidepython
5 Posts 2 Posters 2.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jeertmans
    wrote on last edited by
    #1

    Hello, I am writing a video-slides application that uses QMediaPlayer to play videos.

    When a slide is over, I would like to have it paused on the last frame of the current slide.

    Currently, each time a media has reached its end, i.e., QMediaPlayer.EndOfMedia, I have a black screen.

    Is it possible to avoid this?

    I am aware of this solution, but this is kind of a ugly hack and does not render well.

    I am using Pyside6 6.6.0

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      One of the main issue with the "last frame" is that depending on the video codec, there might be no "last frame". Most of the time, frames are not full images stored in the video container. So I would say that having a static image of what you want to show is a better bet.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        One of the main issue with the "last frame" is that depending on the video codec, there might be no "last frame". Most of the time, frames are not full images stored in the video container. So I would say that having a static image of what you want to show is a better bet.

        J Offline
        J Offline
        jeertmans
        wrote on last edited by
        #3

        @SGaist Hello, thanks for your reply!

        After testing, what I describe is actually a "bug" that was introduced in PySide6 v6.5.3. I am reporting it to the bug tracker :-)

        SGaistS 1 Reply Last reply
        0
        • J jeertmans

          @SGaist Hello, thanks for your reply!

          After testing, what I describe is actually a "bug" that was introduced in PySide6 v6.5.3. I am reporting it to the bug tracker :-)

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jeertmans Nice catch then :-)

          Can you share the link to the report ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            @jeertmans Nice catch then :-)

            Can you share the link to the report ?

            J Offline
            J Offline
            jeertmans
            wrote on last edited by
            #5

            @SGaist Sure https://bugreports.qt.io/browse/QTBUG-118501

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved