Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107032

Make it possible to display the current frame when changing position without calling play() in QMediaPlayer

    XMLWordPrintable

Details

    Description

      After a video file is loaded in application using QMediaPlayer, it is possible to set position for starting playing the video from that position but the current frame in that position isn't rendered in QVideoWidget or QGraphicsVideoItem if play() is not called. After calling play() and then stop(), frame is rendered correctly when seeking.

      Steps to reproduce

      1) Open, build and run the official Qt Media player (widget) example or the attached minimal example
      2) Open a mp4 video (in case of attached example it is opened automatically)
      3) Try to seek through the video using the slider -> Frame is not rendered (Not expected)
      4) Press Play and Then Stop. Try to seek through the video using the slider -> Frame is rendered like expected.

      Suggestion:
      Improve the API, so that the video frame in the current position can be displayed in the widget without playing a bit of the video first. As far as I know this would be the way the Media players generally behave.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            artemiy Artem Dyomin
            foxxx Tuukka Kettunen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes