jerauf's avatar

Getting preview img from embedded video

I've got a site that has videos embedded from many different sites. Right now, I need to manually take a screenshot and upload that as the preview image. I'm not uploading and encoding the videos, though. Only using embed code.

Has anyone ever used Laravel to auto-generate a preview image from the video that's been embedded?

0 likes
2 replies
martinbean's avatar

@jerauf A lot of video sites will implement a format called oEmbed. You’ll be able to call an API to retrieve details about a video, such as its thumbnail image URL.

1 like
rin4ik's avatar

I can help you with only youtube videos. I know how to generate preview images.

Please or to participate in this conversation.