Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You need to use something that allows you to work with video. For example, ffmpeg can do a lot. For PHP there is a wrapper FFMpeg-php. The frame is saved like this:
Time, respectively, you need to take, based on the duration of the video.
I can offer an option for youtube.
YouTube saves thumbnails for each video and you can get them like this
where [VIDEO_ID] is the hash of the video,
[0-3] is the screenshot number (there are 4 of them in total)
You can display the picture directly at this URL, or after saving it to yourself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question