I am interested in creating a website that displays a few "screen captures" on the screen. These "screen captures" can be any image file type (ex: jpeg, png, etc.) I would like to be able to display the first frame screen capture of a Youtube Video. When the user clicks on this, the user will be redirected to the Youtube URL.
How can I retrieve the screen shot or first frame image of a Youtube video, given it's URL? For example: http://www.youtube.com/watch?v=gbcmYbMB9mo Using this, I'd like to have an image of the GoPro camera. Is there an API to capture the first image of the Youtube Video?
Thanks
You can use YouTube IFrame API (see https://developers.google.com/youtube/iframe_api_reference).
Here is an example for playing the video provided in your question (
gbcmYbMB9mo
):You might need to "play a little" with this code in order to prevent the video from starting automatically...