QMediaPlayer - Stopping on last frame
-
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
-
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.
-
@jeertmans Nice catch then :-)
Can you share the link to the report ?