How to set the first frame of a video file
The example of video player can set video file play to the beginning. But it is a black screen with null state. I would like to show a picture like playing a video in youtube. How to display the first frame of the video?
You likely should get an image after 1 second rather than trying to get the first frame. Videos do not necessarily start with something at frame 0.
JoeCFD last edited by JoeCFD
Thanks for your reply. Yes, I played 300ms and paused it. It is OK now.
300ms is not a good solution. Better to show the thumnail frame. But not sure how to find its position
It's too short in any case.
The file does not necessarily contain such meta data.
You might be able to get something through QMediaObject::metaData but no guarantee.
Thanks for your idea. I might have short videos.