Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
6.3.2
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.