Assuming website app
U can just read the first video frame / I-Frame and decode it, for example. ffmpeg, however, for this you will implement C ++ code, possibly in your backend, to read this first frame and convert it, for example. Jpeg and then send it back to the caller (web page)
source share