php - how to show youtube video thumbnails -
My site lets users upload YouTube video code. After showing thumbnails of uploaded videos and clicking on specific thumbnails, I am trying to create playlists by playing related videos.
I want to know how to get captions and thumbnail images of videos that have been uploaded using YouTube's embed code?
Edit:
To clarify the question, my users upload the code, such as the following code:
& lt; Object width = "640" height = "385"> gt; Ultimate name = "movie" value = "http://www.youtube.com/v/-L8DFfSJbqU&hl=en_US&fs=1" & lt; / Param & gt; & Lt; Ultimate name = "Allow full screen" value = "true" & gt; & Lt; / Param & gt; & Lt; Ultimate name = "Permission" value = "always" & gt; & Lt; / Ultimate & gt; & Lt; Embed Src = "http://www.youtube.com/v/-L8DFfSJbqU&hl=en_US&fs=1" type = "app / x-shock-web-flash" permission = "always" allowed screen = "right "Width =" 640 "height =" 385 "& gt; & Lt; / Embed & gt; & Lt; / Object & gt;
So how can I get vedio ID before the thumbnail image for the first time?
Thumbnails that you can load from the video url.
Video URL
THUMBNAIL URL
< / P>
It takes some time to repeat the images to all thumbnails (probably the server) for the new video.
If there is no thumbnail, then it returns the image (exactly 893 byte length) with the camera.
EXAMPLE
Comments
Post a Comment